Yes, definitely post the log
the short answer is that most likely your PC is getting overloaded for some reason..
could be lots of things from insufficient disk throughput to write the recording to something happening an impacting RAM, CPU, or GPU to point of contention and PC has to stop something and the recording stops... it may have nothing to do with OBS (or might)