I get these weird black screen crashes on most games that either forces me to restart my PC or if I'm quick enough I can press Win + crtl + shift + b and not have to restart it. I've tried the newest optional driver and that made things worse, while the older drivers didn't fix it. I'm currently on the stable drivers and the issue still persists. I use 2 monitors, my main one uses a display port while the secondary uses HDMI. This crash happens faster in some games. It crashes the fastest one Starwars Battlefront II, while it doesn't happen that often in Final Fantasy XIV.
specs
CPU - ryzen 5 2600
RAM 16 gb 2933mhz
GPU rx 5700 xt GIGABYTE OC