I don't think glitches are a result of dust build-up inside your Tamagotchi. When you take it apart you are removing the battery. Doing that is the same as pressing the Reset button on the back. So, really you could save the take-it-apart steps and just press the Reset button on the back then select Download from the Download / Reset menu on the screen.
binary is correct. You don't have to take your tama apart to fix a glitch. Just press the reset button and select download from the menu. Reseting it won't give you the risk of destroying the chip.