Maybe it is offtopic but if you use Nexcloud AIO you can try increase memory limit as I have im my docker-compose.yml file …. here → Testing Large File Synchronization with Nextcloud AIO and NGINX Proxy — June 2025 Update
environment:
- APACHE_PORT=11000
- NEXTCLOUD_MEMORY_LIMIT=4096M
Maybe it helps.