Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /var/www/wp-includes/wp-db.php on line 2022

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/vendor/sentry/sentry/src/Exception/FatalErrorException.php on line 1