If it only happens during gaming, that would indicate a problem with the GPU.
Either the fan on the GPU is not working sufficiently to cool the graphics card, the driver needs to be updated or the current power supply is not enough for the gaming requirements.