I have the same problem to a headless RPi4. Currently, I stop the display_manager and restart nxserver to fix this – it forces NoMachine to create it’s own display.
It’s something to do with not being able to start a window session but this is the first time with the latest Debian bookworm version I have had this issue – I access several other pre-bookworm machines with no problems.