PHP Fatal Error in Docker ghcr.io/nextcloud-releases/all-in-one:latest

I don’t think you actually want PHP_MEMORY_LIMIT=1.

As for the cause for the excessive memory usage, can’t say without more information such as that requested in the support template.