1. Update OBS to 26.0.2 or newest available version.
2. Run OBS as admin
3. At least one of your audio devices has a sample rate that doesn't match the rest. This can result in audio drift over time or sound distortion. Check your audio devices in Windows settings (both Playback and Recording) and ensure the Default Format (under Advanced) is consistent. 48000 Hz is recommended.
OBS Sample Rate:
44100 Hz
Microphone Array (Realtek Audio):
48000 Hz
To fix this go to OBS Settings, Audio, General and change the Sample Rate to 48 kHz.
4. SLI/Crossfire Capture Mode (aka 'Shared memory capture') is very slow, and only to be used on SLI & Crossfire systems.
If you're using a laptop or a display with multiple graphics cards and your game is only running on one of them, consider switching OBS to run on the same GPU instead of enabling this setting. Guide available
here.
You can disable this in your Game Capture Properties.
5. Record to FLV or MKV. If you record to MP4 or MOV and the recording is interrupted, the file will be corrupted and unrecoverable.
If you require MP4 files for some other purpose like editing, remux them afterwards by selecting File > Remux Recordings in the main OBS Studio window or enable Auto remux in the advanced settings.
Use log analyzer or post new log after making those changes if still having issues.