Frankly, I solved this problem a little bit by keeping the cover of the case open and manually increasing the fan speeds.
CPU heating may not be much of a problem, it is important that the CPU socket does not get too hot due to the CPU.
If the socket gets hot then the problem starts and the computer turns itself off.
However, before it reaches that state, I go into standby mode and cool the case a little.
If there is a small fan, you can open the cover of the case and put it next to it.