Hello, first it's a pleasure to be able to help you today.
My name is Georges C. welcome to the community.
Hello Hajral, this error would be on the console or pc, I believe it's on the PC, have you checked if you have the latest version of Windows installed, at 21H2, because recently came out the latest update to Windows 10 and 11.
See which version of Windows 10 you have
https://support.microsoft.com/en-us/windows/see...
Updates often seen as optional, Microsoft released major fixes this week, and make sure you have the Xbox Companion App installed.
If you haven't updated yet, click the link below, update and then make all subsequent security updates.
Download Windows 10
https://www.microsoft.com/en-us/software-downlo...
Download Windows 11
https://www.microsoft.com/en-us/software-downlo...
Also make sure all Xbox Apps are up to date in the store, and make sure you have the Xbox Companion App installed, it works with the Xbox App.