i had this problem and i know there is a good number of people having this same issue in here. In my case, i found that the original charger that came with it was the issue. I used one of my old ipod charger and I never had mine restart while charging. Worked pretty well with other android chargers too.
Will others with the same issue try this fix and confirm? Thanks.