Dear Samsung Member,
Greetings from Samsung Customer Support!
Please be assured and to resolve "Overheating" issue please follow the below given steps:
1)Close background running apps.
2)Uninstall the unnecessary apps.
Overheating--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