That is just a generic user warning from a time where batteries were actually replaceable.
But now this app can be considered as legacy (and will be removed), it just warns the user if the battery charging is on halt because a certain temperature threshold was reached.
This is working as intended and can sometimes happen if the thermal strain is high on the system.
Just as an additional note:
Battery overheating is very unlikely, if a certain threshold is reached it will first stop the charging process, then throttles the system and if this doesn’t mitigate the situation it will just power off until the battery is cooled down.