Hi Alexandra,
Typically, this error occurs when you are not signed in to the Xbox app on Windows. If you are signed in, could you sign out and then sign in again? This should resolve the issue.
I am eager to hear back from you so we can find a solution.