My name is Jan, I’m an Independent Advisor. Most likely caused by the graphics drivers. Try reinstalling the Intel and Nvidia graphics drivers.
Download the latest Intel ( i7-4770 - Intel HD Graphics 4600) and Nvidia (GT 1030) graphics driver from the manufacturer support website and install them.
For the Nvidia driver select "perform clean installation"
once installed restart your computer.
I also recommend using this tool to update all Intel drivers.
https://www.intel.com/content/www/us/en/support...
Hardware requirements for capturing on Windows 10
https://support.xbox.com//help/friends-social-a...
Xbox Game Bar recording system requirements
https://answers.microsoft.com/en-us/windows/for...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.