Maybe I have a little solution for VPS using PM2, PM2 ensures that Application continues to run without stopping, even if Aapplication has problems, if Application fails or crashes, PM2 will automatically restart..
Stop your Nodejs, then run this command in terminal to run nodejs with PM2.
Customize where your logs file are stored..
pm2 start server.js --name mpwa --log /home/users/logs/mpwa.log --output /home/users/logs/mpwa-output.log
"I use this on aaPanel and cPanel shared hosting running PM2 on nodejs virtual environments and so far nodejs has never crashed."