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 and uninstall the unnecessary apps.
For more details follow the instructions provided in the link given below:- 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