Original post by: Dan A+ ,
I once serviced a smartphone with a similar issue. Removing the battery and placing it in front of a fan for 30 minutes before reinserting it fixed the problem. Also, is the battery you are using one that the manufacturer recommends (specifically a lithium-ion battery made by Apple)? Non-proprietary hardware may cause “glitches” like the one you are describing.