latching relay not always resetting
R1 is a bit on the high side, you're only getting about 1.5mA base drive with the full 3.3V in and the coil draws almost 50mA. I would reduce it to 680 ohms, but I don't think that's your problem.
It looks like you're trying to drive the reset input directly with the ESP output pin, which is bad in a couple of ways. Suggest you duplicate the BJT drive circuit sans diodes but with the flyback diode, transistor and base resistor.