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

If you remove the 10k resistors,
then you also must use internal pull up on the pins with pinMode.
Assuming you have NPN-type sensors.

pinMode (sensorPin1, INPUT_PULLUP); // use internal pull up resistors

Adding the caps might be a good idea.
Leo..