Unable to edit nextcloud office configuration settings

The 500 error means there should be more information in your nextcloud.log and/or web server error log.

Again, all this is requested on the support template.