NR Fails to start server

I installed NR on Windows 11 and run it successfully for the first time. After installing and reinstalling couple of modules the NR does not start any more. I got following errors:

14 Oct 18:41:31 - [info]

Welcome to Node-RED

14 Oct 18:41:31 - [info] Node-RED version: v3.0.2
14 Oct 18:41:31 - [info] Node.js version: v16.18.0
14 Oct 18:41:31 - [info] Windows_NT 10.0.19044 x64 LE
14 Oct 18:41:31 - [error] Failed to start server:
14 Oct 18:41:31 - [error] Error: spawn Unknown system error -536606512
at ChildProcess.spawn (node:internal/child_process:420:11)
at spawn (node:child_process:733:9)
at Object.execFile (node:child_process:331:17)
at C:\Users\Art\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\registry\lib\installer.js:581:27 at new Promise ()
at Object.checkPrereq (C:\Users\Art\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\registry\lib\installer.js:580:16)
at Object.load (C:\Users\Art\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\registry\lib\index.js:59:22)
at C:\Users\Art\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\index.js:146:29

Please help.

Clearly some node you installed is problematic. What nodes did you install?

I installed node-red-contrib-uibuilder, node-red-dashboard, and one of the opcua ones. Since then I removed the modules, that did not help, so then I removed node-red. cleared cache, deleted files from C:\Users\Art.node-red folder and C:\Users\CZV3JP\AppData\Roaming\npm, and reinstalled node-red. I guess these were not proper steps, so I ended up with node-red not starting.