Waze overheating shutdown

On recommendation installed and used Waze app instead of Google maps. Phone alert for overheating and then it shut down, not a good event when you are using the app for directions! Tried it again a couple of days later and the phone started to overheat. Battery settings - eco charge, battery protect (80%) and every year I alternate with another battery. If there is a cure excellent, if not I am just bringing this to people’s notice.