Dear Samsung Member,
Greetings from Samsung Customer Support!
Please be assured and to resolve "Overheating issue" kindly folllow the given link:- https://www.samsung.com/in/support/mobile-devices/why-the-heating-issue-occurs-in-mobile-device/
And please be assured, to resolve "charging"issue we would like to inform you that kindly switch off Handset for 5 minutes to cool down and recheck if its working fine.
And Samsung customer’s safety is on top priority that is why this concept is introduced with logic that whenever handset temp. or ambient air temp. goes up to certain set limit, then device automatically restrict fast charging or even some time stops charging. But post device temperature reaches to normal after cooling down the set, then automatically set starts charging normally (This is implemented in all Smartphone models from year 2019 )
Note : If you have already send the error report then, we request you kindly do wait for some time soon you will get the resolution from our end.
If the issue still persists(charging), kindly visit the nearest Samsung service center, Please be assured your issue will be resolved soon.
Thank you for writing to Samsung.
Samsung Customer Support