There is really no reason to fear overheating due to charging. I leave mine plugged in all night, it doesn't break a sweat.
It's high CPU usage during screen on time that is heating the device.
The device can get warm when fast charging, but this is normal behaviour. Stock does this as well.