Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/ Composer/DependencyResolver/Solver.php on line 201.
Application
Customer
Potential cause
The application uses an older version of the Drupal Starter Kits project template, which causes a Composer memory limit error.
Solution
Confirm that your application meets the following best practices:
From composer.json, remove the lines that point to the old Drupal Starter Kits project template. Drupal Starter Kits utilizes the Acquia Drupal recommended project.
Commit composer.lock.
Use Composer 2.
Analyze the delta between a working composer.lock and the failing composer.lock.
How do I resolve a Composer memory limit error during code build? | Acquia Product Documentation
Code Studio
How do I resolve a Composer memory limit error during code build?