what about client_max_body_size in the nginx.conf bzw. nextcloud.conf ?
client_max_body_size
or [URL REMOVED - Spam-protection [JK]]
or Uploading big files > 512MB — Nextcloud latest Administration Manual latest documentation