Ahead of saying anything, I apologize if this is in the wrong section.
So, I have a Sapphire RX580 Nitro+ (8GB), and have been trying to get dual monitors to work for quite some time, without any progress. My main monitor, AOC G2460VQ6, gets plugged in via DisplayPort and works completely fine on its own. The second monitor I have, and which I used previously before I bought this GPU, is an HP w1907v. If I plug that in on its own, via VGA or DVI, it works too. Now, if I plug them both in at the same time, I can watch youtube, do general computer stuff, even some programming, they work fine without issues. However, if I open up a game, after about 20-40minutes, depending on the game, my computer restarts itself.
I've been dealing with this issue for about a year now and have honestly run out of ideas as to why this happens. I'd appreciate any help, even recommendations for new hardware despite the ludicrous prices.
My other specs:
Motherboard: MSI B450 Gaming Plus Max
CPU: Ryzen 5 2400G + Wraith Cooler from R7 2700X
RAM: Kingston HyperX 2x8GB 2666Mhz
PSU: Corsair CX550M