I used to have a desktop that would randomly reboot until I replaced the power supply with a higher wattage one, which is more or less what was happening here afaict.
Which wouldn't be a problem if apple didn't decide the design life of the iphone was only 1 year. Otherwise they would have correctly accounted for the internal resistance of the battery increasing.