Relays often cause problems. If you disconnect the relays do you see the problem?
Your circuit diagram shows no secondary output on the relays. What are they switching?
I'm not sure about the modules you are using, but powering the primary side of the relays from the Arduino directly is not good practice. Can you power them from something other than the 5v pin? Connect the grounds if you change the supply.
OP's attached circuit
