Dear Samsung Member,
Greetings from Samsung Customer Support!
Follow the troubleshooting steps provided in the link to avoid overheating issue :- https://www.samsung.com/in/support/m
If issue still persist, kindly register your concern in Samsung members app (Samsung Member > Get help > send feedback > Ask question/Error report)
Thank you for writing to Samsung.
Samsung Customer Support