Display driver problem GeForce 1050 [please help me i tried everything]

ilija.k95

Prominent
Jan 19, 2018
4
0
510
Bought my pc almost a year ago.A few months ago i started experiencing black screen after watching movies or youtube on pc and the message in the right corner saying ''display driver stopped working and has recovered''
I dont know what the problem is.
I tried a lot of old drivers.Reinstalling and installing again.Tried going to nvidia controls and setting power to max performance.
The only thing that helped a little is an advice from some forum to go to registry and add some delay value 8 code.It fixed it a little bit.After that when watching a movie first the frame rate slows a lot,then i move the mouse,the picture freezes and continues after 3,4 secs.And it does that every 10,15 minutes while watching.

My specs are:
Intel core i5 3.2 ghz
8gb ram
and AOC monitor
 

ilija.k95

Prominent
Jan 19, 2018
4
0
510
Dont know really how to check if it's about that.I''ll try another electrical outlet now to see if it's that.Maybe I should mention that when i just assembled the PC i sometimes a got disconnections from the monitor.Not freezes like now and low frame rates but off/on in a second.
 

ilija.k95

Prominent
Jan 19, 2018
4
0
510
Actually i found out yesterday before seeing your reply that i had a Trojan horse and a malware so after removing them it stopped.If the problem still keeps on going I ll try that definitely.Thanks guys :)