Nextcloud memory issue: Allowed memory size exhausted

I noticed on Cockpit that NextCloud cron.php job was failing due to insufficient memory. I understand that this is an issue caused by the pod configuration, but I cannot find how to increase the memory size or what is causing it to be exhausted.

I’m not sure what caused it or how it can be replicated, as I only found the error and couldn’t get it to work again. I tried rebooting the system.

Error
I get an error with the following message:

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted

Screenshot

Information

  • FreedomBox version: Bookworm with FreedomBox 25.9.3
  • Hardware: HP Notebook 4x Intel(R) Core™ i5-6200U CPU, 1TB HDD, and 12 GB RAM (usually only 2 are in use)
  • How did you install FreedomBox?: I installed FreedomBox on a clean Debian installation.