Nodemcu responds badly to power swing
Put a 100 ohm resistor across the SSR input (3/4). They are quite sensitive and can trigger from even a small amount of coupled energy. The 100 ohms will shunt that away.