Powering Relay Board Issue - Losing MQTT Connection

For troubleshooting --

  1. you could run the Nano and wifi board from 5V_USB and run the relay board from the 12-to-5V unit; see how that goes
  2. add a bigger capacitor on the 12-to-5V output (470-1000uF)