Dear Samsung Member,
Greetings from Samsung Customer Support!
To resolve "Overheating" issue please follow the below given step:
>>Close background running apps.
Follow the link for more details: https://www.samsung.com/in/support/mobile-devices/why-the-heating-issue-occurs-in-mobile-device/
If the issue still persist, kindly register your concern in Samsung Members app (Samsung Members app > Get help > Feedback > Error report/ask question).
Note: Please send device log files within 15 minutes of issue occurrence along with the exact issue details.
Thank you for writing to Samsung.
Samsung Customer Support