Hi and thanks for reaching out. My name is Bernard a Windows fan like you. I'll be happy to help you out today.
I understand the issue you have, there is nothing to worry I am here to help, since you have done the repair, what we will do is disable and uninstall the game bar:
Open the Settings app and go to the Gaming section.
Disable the Game Bar
Once done, open Powershell with Admin or CMD with Admin (Press Windows key + X then click Windows Powershell(Admin))
Copy the line of command to Powershell then press enter:
get-appxpackage *gamingoverlay* | remove-appxpackage
Open the Xbox Companion App.
Go to Settings > Notifications and enable Party & game invitations.
For reference you may check it here: https://windowsreport.com/xbox-windows-10-app-n...
Let me know how it goes and I hope that helps.
Bernard