Arduino freezes when using power on my relay board

you may be also getting a spike from the relay when it de-energises.. you may want to use a blocking diode on the relay coil.
this is usually always a must with electronics..it stops spike backfeeding into the electronics.