Arduino Nano + 2 IR proximity Sensors + 4Channel 230V Relay -> Reset problem

Hi,
You don't need the 10K on the inputs D4 and D8, connect the sensor output directly to the inputs.
At the moment they will be adding to the high impedance input and so may be picking mains switching noise up from the relays.
Place a 0.1uF capacitor from each of the inputs to gnd, to bypass any noise.

Thanks.. Tom.. :