Can you replace a sdd with a hdd. YES Will it fit? Maybe, some ultra thin device and not thick enough, and some are. You need to measure with a ruler.
Most hard drives don't produce a significant amount of heat, and overheating isn't an issue.
You can leave you external hard drive plugged in as much as you want.