if (PHP_SAPI === 'cli') { ini_set('memory_limit', '512M'); }
If the problem is the memory limit at Acquia https://acquia.my.site.com/s/article/360005311613-Increasing-the-memory…
ie:
../vendor/drush/drush/drush --config=/var/www/html/freida.test/docroot/drush/drushrc.php --root=/var/www/html/freida.test/docroot miginteg --fixnids