This usually happens if your PC's CPU usage is very high while you are recording.
Things you can try to reduce CPU usage:
- Reduce the size of area that you are recording
- Reduce the recording frame rate
- Close any unneeded apps that are running in the background.