Debugging a tama can cause problems with the circuit board, and it's the same for all tamagotchis.I suggest that you take your tamagotchi apart and post a picture of the it apart, so that I can see if there's a probolem.
I know circuit boards well, so I will tell you what is it, and how to repair it.