Minecraft overheating

So, every time I play Minecraft 1.14.4 with OptiFine and then install or load a world and start place block the laptop fan start running fast or it get hot, like really how.

Every time when I place my hand on the back on the laptop it feel super hot and when I exit out of Minecraft like when I quit the game after a few min the laptop go back to normal mode and it cool down but only after awhile.

The laptop I’m using is Dell laptop with i7, it’s a brand new laptop I brought It had Intel core 17 8th Gen CPU and NVDIA GeForce GPU, it’s really good – but cooling is just wrong.