You’re likely running into the infamous amazon S3 issue then. Large files on amazon S3 tend to fail. Not just for nextcloud, happens on other apps such as rclone.
If you are using this in a enterprise setting it would be best to reach out to both amazon and nextcloud directly.
This is with a ceph S3 backend: