Hey, I have the same issue when using borderless windows for the games I play (i.e. Cyberpunk, WoW, etc). I usually tab forth and back between applications, read something online, watch a video on youtube, etc, while a game is waiting in the background in borderless window mode. And sometimes the screen just goes black after a while. To me, the GPU driver seems to be the culprit as it recovers after some time from the black screen. At this point, everything works fine, except for the game as its render crashed. I have not experienced the same with fullscreen, there were no issues whatsoever, but alttabbing takes a bit more time and resizes some windows (i.e. excel), and that creates inconveniences so I would rather stick to borderless windows.
Some system specs: MSI B550 Tomahawk, Ryzen 7 5800X3D, 32GB 3000mhz, PowerColor Red Dragon 6800 XT, Corsair TX850M, Win 10 Pro. Naturally, every software is up-to-date.