You can run the inbuilt Windows troubleshooter or just reset your PC to fix the error. Besides that, you can also consider updating or resetting the graphics drivers in your system.