This problem is being described in the Nextcloud administrator guide where you find information how to fix the problem:
https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/big_file_upload_configuration.html?highlight=big%20files#configuring-php