I am using the circuit below to switch a bi-latching relay once a wire is disconnected, i.e. to not switch as long as a voltage is present on the wire.
After assembling on a PCB, on which there are multiple instances of the circuit, about half appeared to work properly once, but after cycling the relays on/off by disconnecting the wire and resetting on the other side, all of them would stop working.
Specifically, the Q2 gate voltage appears to be internally pulled up to between 2V and 10V, and even when connected directly to GND it becomes active and brings Q1's gate to GND. Q1 appears to still function as expected.
In simulations it works as expected, and I find it strange that Q2 is the one that goes given how relatively shielded it is from the relay current and potential flyback voltage spike.
Potential solutions I see here are to use bigger MOSFETs or switch Q2 to a BJT, but I'd like to understand what could be causing this to avoid the same problems in future.