Video freezes when recording


New Member
New user of OBS Studio here. I am using OBS Studio to record some of my online classes. In the last 10 instances, it has happened twice that after a point the video freezes in the recording, I can only hear the audio, but the video gets stuck on a particular frame (slide in the slide deck of the online class). OBS is not able to capture all the transitions that are happening on the video, just the audio is being captured. BTW, I have activated two sources to get audio and video - Display capture and game capture.
How can I fix this?

Thanks & Regards,