A clean log file is required to help fix your issue. To make a clean log file, please follow these steps:
1) Restart OBS
2) Start your stream/recording for at least 30 seconds (or however long it takes for the issue to happen). Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.
3) Stop your stream/recording.
4) Select Help > Log Files > Upload Current Log File. Copy the URL and paste it here.
(Note: If you do not see an obsproject.com URL, you will need to update OBS Studio to version 22+)