I have designed short circuit protection circuit that you can find in the image.
When you supply 24V from L1 pin and there is no GND(no short circuit) in L2 pin, circuit conducts L1-24V to L2 pin. If there is a short circuit in L2 pin, circuit switch off the gate.
When i test the circuit by shorting L2 to GND , sometimes it can not separate L2 from L1 because bc817s are still a little conducting, overcurrent flows from drain to source over protection diode of mosfet and p channel mosfet(FDS9958) is being damaged.
What can i do to improve stability of this circuit?