Check your battery health
You should periodically check the health of your battery to make sure it is functioning correctly. Go to Settings > Battery > Battery Health to check the capacity of your battery and turn on optimized battery charging that reduces the wear and tear on your battery. The lower the battery capacity, the older it is, and the more likely it will fail. Replacing the battery will reduce the risk of a battery bursting into flames, and it will extend your battery life.