OK guys, I think I figured it out in my case. Two months without a single issue. I had 3600Mhz XMP profile on my system, and had no idea it could affect video driver. So I just switched to 3200Mhz and everything works fine rn. I hope this will help you.The same problem. Everytime I start a stream via x264 or AMD HW it crushes randomly and blacks out both of monitors. Win 11 doesn't report any problem and AMD software says it was a driver error. Driver version doesn't matter neither for GPU or OBS.
GPU RX7900XTX
CPU 5900X
MB MSI MPG X570 GAMING PLUS
Latest Windows 11