For Drush 9 increase the memory limit for drush


if (PHP_SAPI === 'cli') {
ini_set('memory_limit', '512M');
}