Dear Samsung Member,
Greetings from Samsung Customer Support!
Kindly follow the below mentioned troubleshooting steps and be assured that it should resolve your issue:
1) On the home screen swipe down the notification panel. Turn off Wi-Fi, GPS, Bluetooth, and other connectivity features when not using them.
Kindly visit the give link on the complete steps for overheating:
If the issue still persists kindly attach the log file and send it to us in the Samsung member application(attach when the issue occurs within first 15 minutes of the occurrence of the issue.):-
Samsung Members App > Feedback >Error report > Attach log file.
Thank you for writing to Samsung.
Samsung Customer Support