Could you post a log?
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. 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+)