Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /app/docroot/core/lib/Drupal/Core/Cache/DatabaseBackend.php on line 167

PHP
memory_limit = 64M;Fatal error: Allowed memory size of 1610612736 bytes exhausted

export COMPOSER_MEMORY_LIMIT=-1
and restart composer update
;memory_limit=512M 

Source

Also in PHP: