The trick to prevent the battery that powers your smartphone from falling over and suddenly dying is to prevent the part from charging all the way to 100%. the life of your battery depends on the number of charge cycles it has. Each cycle is counted when you go from 0% to 100%. Once you have charged your battery the maximum number of times, you should replace the battery with a brand new one.
The Pixel 6 series will automatically limit the battery charge to 80% when powered on to help the component last longer
Do not charge your phone in bed, where it can become a potential fire hazard by being covered with blankets and pillows; cutting off the handset’s access to air is dangerous. The best place to charge your phone is on a flat hard surface. If your phone does get warm, don’t put it in the freezer next to TV dinners. Moving from one extreme temperature to another can damage the phone as the components can expand in the heat.
Introducing cold temperatures to the phone in this scenario can lead to the addition of unwanted moisture to your device. If you think your phone is overheating, it’s best to unplug it while it’s charging and turn off the handset. Place it in a cool place away from sunlight and remove any cover you have on the device. If you were charging the phone when it got hot then check the cable to make sure it isn’t damaged. If it is damaged, discard the cable and use a brand new one.
Take good care of your phone battery and it will take good care of you and your phone.