Going Both Ways

You can't power the Arduino from 12volt AND power the relay module from Arduino's 5volt pin.
That might work with only ONE relay activated.
Any more than that, and Arduino's 5volt regulator will eventually overheat and shutdown (or release the magic smoke).
Leo..