Hi xAjayy,
It is unfortunate the computer is having issues while playing games. Request you to use the below links and update video and audio drivers by selecting the operating system:
You may also use the below link to run diagnostics on the computer.
Also let me know which game are you playing?
If you have further questions do reply to the same thread along with the status of the diagnostics.