If this occurs when gaming it suggests that the graphics card is overheating when being worked to its maximum.
I would suggest for a start taking the card out and giving it a clean if dusty.
Likewise make sure there is good airflow through the case.
Huawei MateBook X Pro review
8 digital brands that designed custom typefaces to save millions
How to speed up a slow Mac
Comment résoudre des problèmes d’impressions ?