Your device includes a heat sensor activated by the battery temperature. A pop-up message will be displayed if the device turned itself off or stopped charging as in the following cases:
Your phone may turn itself off when the battery temperature becomes too high (above 60°C) during use.
Charging may stop temporarily when the battery temperature becomes too high (above 55°C) or too low (-10°C).