It seems that I've fixed the problem.
Open VM tab
Edit VMs in XML mode
Change "port" properties in "graphics" section from -1 to a valid number, like 5702
Change "websocket" properties in "graphics" section from -1 to a valid number, like 5902
I don't know how these properties are set to -1. There is not place in the form view to change these values.
If unable to make these changes due to nginx workers crashing, restart the unraid server and don't open any vnc view before changing these values.