I’m still checking right now, but I think it’s because of WordPress.
Here some parts of source code are interpreted as real source code and truncated.
I have as an example a nginx configuration and in various parameters half is missing.
I also just notice that in my first post even the error is there ??
The problem can be easily reproduced.
Just create a source code of a nginx configuration and see what happens.
I have a post here: https://hoerli.net/nextcloud-installieren-komplette-installation-inkl-fix-der-probleme/
It is in german but should be understandable with a translator.
I had to write some comments in the nginx configuration, from broken places that need to be fixed by hand.
At HTTPS-Config, the line 45, 50 and 52 are actually broken. There must be a space replaced with a _ in parameters for it to work.