This might be an issue with your Xbox Live connectivity.
On the following support page from Microsoft, you’ll find steps to check if there is a problem: https://support.xbox.com/en-US/help/hardware-network/connect-network/server-connectivity-xbox-app-displays-blocked
Might be a firewall setting that changed or simply an outdated Xbox App. Make sure to update through the Microsoft Store.
Give this a try and let us know how things go.