It might be a problem with the graphics driver.
First, please uninstall the graphics driver completely.
And then, please install the latest version of the graphics driver and try recording again.
Also, please uninstall and install the latest version of Bandicam.https://www.bandicam.com/downloads/
If it does not seem to help, please let us know your PC specs such as CPU, GPU, OS, and graphics driver version and your recording target.
We look forward to you reply.