Dear Samsung Member,
Greetings from Samsung Customer Support!
Kindly follow the below steps and be assured your issue would be resolved:
1. Close Background Apps: Tap minimize key & close the background running application.
2. Usage of mobile phone when charging. We recommend you to avoid usage of mobile phone while charging.
For more troubleshooting steps kindly visit the below provided link to resolve the heating issue:
For further assistance register your concern in Samsung member application: Samsung member > Send feedback > Error reports/Ask questions.
Thank you for writing to Samsung.
Samsung Customer Support