Temperature affects many components differently. It may also be a safety feature. Your phone should probably be getting that hot in the first place. Can you reproduce the issue? Does it happen just playing uTube or a game or the like? You may need to ask for a replacement from where you bought it.