Hello LaurNichelle,
Overheating can occur due to any reason. It can be due to charging, applications use, restoring data from iCloud, playing games etc.
Please try to notice when exactly your iPhone overheats, according to that you can do workaround.