Hmm that looks like nginx got an error from the proxy upstream which is Vikunja in this case. So the error does occur somewhere in Vikunja and not in the proxy.
Could you provide all config and its setup so I can recreate and hopefully reproduce it? It definitely looks like a weird bug.
Oh and I guess you’ve already checked the basic things like the server itself is working properly etc?