If you are getting out of memory errors like Fatal error: Allowed memory size of 134217728 bytes exhausted, you probably have too small PHP memory_limit. Here is how to change the limit in MAMP Pro:
Check your PHP version in MAMP Pro interface:
Find that PHP version in File > Edit Template > PHP:
Change the memory_limit to something bigger:
Close the file and let MAMP restart the servers.