set an environment variable named MQTTLWT to the value RPI1/Watchdog in PI 1
set an environment variable named MQTTLWT to the value RPI2/Watchdog in PI 2
set an environment variable named MQTTLWT to the value RPIn/Watchdog in PI n
change the MQTT config "Messages" topics from RPI1/Watchdog to ${MQTTLWT}
(re)start node-red on all the PIs
As for how to set an env variable - this is an operating system specific thing (but there are LOTS of docs, tutorials and vides around the net - just search "set permanent environment variable debian")