Flows disappear after a few hours!

You didn't answer the question:

If you have, and have not paid attention to preventing hackers getting in via node-red, then no virus protection would help.
See Safely accessing Node-RED over the Internet