Recording lagging.

I was recording with this settings( https://imgur.com/KcAgnvU ). After the first 3 minutes or so, my recording started moving a couple frames per second, the audio was fine but the video was lagging hard. In the first 3 minutes the recording was going perfectly, 60fps, no problem. I did search for a solution but I couldn't find anything about my problem.
 
Top