If your computer gets too hot, add more fans.
In case of an overheating laptop, it's a clear design failure. You want to return it and get your money back. Buy a proper laptop instead.
CPUs and graphic chips have a TDP, a thermal design power. It's the maximum amount of power they can draw. The built-in cooling has to designed to cope with the TDP sum of all components.
Many vendors use insufficient cooling because it's cheaper. They hope that Joe average doesn't notice it if he's just surfing the web and reading mails.
Long story short: Your hardware is broken.