I would like to confirm that I have the same problem.
I have figured out that I’m only getting the “connection reset by peer” issue if the screens on the host machine are currently locked (the user locked the screen, or the screensaver locked it due to inactivity). If the host screen is unlocked, the client can connect without any issues.
The host is running Ubuntu 22.04 LTS, NoMachine 7.10.1 Free version.
I have collected the debug logs and have mailed them to the specified address.