Windows 10 lagging then bluescreening

Aug 9, 2018
1
0
10
Hi. Recently i've been experiencing some bluescreens on Windows 10 while playing games/watching yt videos. It keeps happening every now and then, there are days when it doesnt happen at all. For example sometimes when im loading a map in a game my PC starts extremely lagging and my sound becomes distorted then it bluescreens after couple of seconds.
I already checked the minidump logs and it appears that "ntoskrnl.exe" causes this problem. I checked my RAM with the diagnostic tool in Windows 10 and it said that there are no problems.
Formatting my system didnt help. I have tried multiple drivers for my graphics card.