You probably had to buy a new iPhone Lightning cable from Apple sometime ... and even Amazon’s super cheap cable. They’re all good, but you should avoid a few of them, such as Amazon Basics ...
In other words: aren’t two different chargers and charging cables doing the same ... experts say can happen to your iPhone if you continually use the cheapest charging accessories.