It might be a problem with the graphics driver.
Please uninstall the graphics driver completely.
And then, please install the latest version of the graphics driver and try recording again.
If it does not seem to help, please let us know your PC specs, your recording target, and your format settings.
Please also check if you have the same issue when you disable the "Record sound" option.