Hello, thank you for reaching out to Microsoft Q&A.
1
Try resetting Xbox Game Bar:
Search for GameBar in the search bar on the taskbar, right-click the results, and select 'App Settings'.
Scroll down until you find 'Repair'.
If repairing the app does not resolve the issue, try 'Reset'.
2
Update your System Graphics Drivers:
Open the Device Manager.
Expand the arrow next to Display Adapters.
Right-click your dedicated graphics drivers (Nvidia or AMD), select Update drivers > Search automatically for available drivers, and click Update.
If Windows does not find any up-to-date drivers, download and install the latest one from your PC manufacturer’s or driver manufacturer’s website.
3
Re-register Xbox Game Bar by running the command using a PowerShell (Administrator) window.
Get-AppxPackage Microsoft.XboxGamingOverlay | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Once completed, restart your computer and start recording. (Win + ALT + R)
If you are still having issues, let me know.