there is an issue with a CPU exploit and the x264 maxthread
if i understand that issue corretly (or somthing similary with the in 2 part splitted core of the "cpu" if game runs chip 1 and obs in chip 2 it works)
the x264 in 16/18 threads triggers a security feature in the CPU core (like the multithread bug from intel) then its clocked down or something
in combination with other task on the same core it crashs down
but it can works
you need the newest bios update for your board the newst chipset driver
Then split with a tool obs to the last 12 Threads and the game to the first 12
there is a tutorial in german
https://streamtalk.de/index.php/Thread/2352-Guide-Optimales-Streaming-mit-der-Ryzen-3900x-3950x/
interesting is that look stream in browser makes then trouble too ^^