Got a small Nitecore torch which started to spontaneously drain the battery. Not an unusual occurrence - the torch has various mitigations against accidental button pressing which could cause unintentional battery drain. However, I started to find a flat battery more often than expected, and it got to the point where simply recharging the battery would cause the torch to turn on and stay on regardless of button press.
So, of course, I took it apart. In pieces it works fine, so I reassembled and discovered that just tightening up the case would cause a spurious button press. You can see from the photo that the buttons are located on a flex PCB, and that positional tolerance must be quite fine. I am thinking that the cause is the battery swelling, pushing the PCB up against the case thus reducing the clearance and causing a button press.
How would I determine if it is indeed the battery swelling? Is there some test, other than measuring the thickness, that would indicate the state? There are no markings and I don't know the original dimensions, nor the expected capacity.