Can you do me a favor and remove discord temporarily from your scene, and post the logs of a recording test? Your logs are filled with websocket errors coming from that source, which could be either masking true indicators, or it may be the root cause of the encoding lag.
Also, considering you're on ryzen, have you made sure your motherboard's bios is up to date?
And just to have a clear picture as to your monitor situation, as Volfield asked before... Do they have the same resolution and refresh rates? Also, how are they connected to your GPU?
I removed discord from my scene, when i tested out most of Volfield's solutions last night. I uploaded log file with my response.
Made sure to update my bios when i upgraded my pc a few weeks back.
I have 2 ultra wide lg monitors both 1080p:
Main daily + gaming monitor: LG - 29UM69G-B 29.0" 2560x1080 75 Hz Monitor
It has free-sync so through nvidia control panel capped at 60Hz
connected to gpu via display port
2ndary: LG - 25UM58-P 25.0" 2560x1080 60 Hz Monitor
connected to gpu via HDMI
GPU only has 1 hdmi port so 2ndary will always be hdmi as it only has hdmi ports
I also can't use game capture, when i went dual monitor. Back then, I got black screen on OBS preview and on twitch. I tried OBS preview again this morning and it is still black screen. So, did not bother trying to stream.