Hello, I'm Greg, here to help you with this.
Did you remove the headset and card, restart to see if the problem goes away. This will tell you for sure if that caused it.
If not then 1) Try fixes for Xbox Game Bar here:
https://support.xbox.com/en-US/help/games-apps/...
https://itechhacks.com/fix-xbox-game-bar-not-wo...
https://www.digitalcitizen.life/cannot-enable-g...
https://helpdeskgeek.com/help-desk/xbox-game-ba...
https://thegeekpage.com/game-bar-not-opening/
https://www.makeuseof.com/tag/xbox-game-bar-not...
https://windows101tricks.com/windows-10-xbox-ga...
https://www.youtube.com/watch?v=hSBI71iEm0s
2) Try resetting Xbox Game Bar, Xbox Console Companion and Xbox Live in Settings > Apps > Apps & Features > Xbox feature > Advanced Options. Restart PC and try again.
3) If it still fails try re-registering the app from Option 2 here:
http://www.tenforums.com/tutorials/3175-apps-re...
4) If those fail then try uninstalling the app in Settings location above, restart PC then reinstall from MS Store Settings > My Library.
5) If none of those fixes help then go over Windows using this checklist to make sure the install is set up correctly, optimized for best performance, and any needed repairs get done:
http://answers.microsoft.com/en-us/windows/wiki...
Start with Step 4 to turn off Startup freeloaders which can conflict and cause issues, then Step 7 to check for infection the most thorough way, then step 10 to check for damaged System Files, and also Step 16 to test a new Local Admin account. Then continue with the other steps to go over your install most thoroughly.
6) If nothing else works then do a Repair Install, by installing Media Creation Tool, open tool and choose to Upgrade Now. This reinstalls Windows while keeping files, programs and most settings in place, and is also the most stable method to advance to the latest version.
http://windows.microsoft.com/en-us/windows-10/m...
I hope this helps. Feel free to ask back any questions and keep me posted. I will keep working with you until it's resolved.
________________________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.