I have the same issue with MQTT. https://discourse.nodered.org/t/when-i-restart-node-red-mqtt-broker-nodes-show-error/79081
In that thread I said the problem went away when I reinstalled the entire OS, but it's back now on the same Raspberry Pi Zero 2.