Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) {"userId":3,"exception":"[object]

PHP
export COMPOSER_MEMORY_LIMIT=-1Fatal error: Allowed memory size of 1610612736 bytes exhausted

export COMPOSER_MEMORY_LIMIT=-1
and restart composer update

Source

Also in PHP: