Your SN74LVC00 chip is consistently burning and smoking when yourlatching circuit design will briefly apply up to 10V to U1 pin 1, when the switch is powered on. That's clear evidencereleased, due to the action of highC1. Since the chip's absolute maximum input voltage fromis 6.5V, this will damage or destroy the batteries somehow finding its way to that chip, as evidenced by the burning and destroying itsmoking you observed. Probe all the pins with
The example latching circuit you referenced calls for a multimeterCMOS logic gate such as CD4011, which has a 3V to find18V supply range, and can tolerate a 10V pulse. But your circuit uses a 74LVC00, which one is above 5Vcan't.