This seems rather extreme given the existing communications features already built into Node-RED. Websockets, TCP, UDP, http-in/-response, MQTT.
What issues, hundreds of us if not more rely on Mosquitto and have done for over a decade. Other than occasionally making a mistake with some default settings between versions, I've never had any issues with it.
Much easier to set it as a service using nssm or run it under PM2.