Dear Samsung Member,
Greetings from Samsung Customer Support!
Kindly follow the below mentioned step to improve the performance of the device:
1.Turn off Wi-Fi, GPS, Bluetooth etc: Swipe the notification panel>Turn off Wi-Fi,Bluetooth, and other connectivity features when not using them.
2.Usage of mobile phone when charging: We recommend you to avoid usage of mobile phone while charging.
For further details please click on the mentioned link: https://www.samsung.com/in/support/mobile-devices/why-the-heating-issue-occurs-in-mobile-device/
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 for any issue
Thank you for writing to Samsung.
Samsung Customer Support