The error that says allowed memory size was exhausted has a quick fix in wp-config.php.
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
WP_MEMORY_LIMIT is the limit WordPress tries to set for normal requests (40M by default, 64M on multisite), and WP_MAX_MEMORY_LIMIT is the higher limit it uses in the admin area for heavy jobs. WordPress raises the limit with ini_set, so it does nothing when the host or the PHP-FPM pool has a hard cap in memory_limit. Check the real value under Tools, Site Health, Info, Server. A plugin that needs gigabytes has a bug, so do not just keep raising the number.
Further reading: WordPress: Editing wp-config.php