I finally found a solution to my problem, hope that this helps somebody else as well.
I have 2 xboxes, a series X and a series S.
It turns out that I have to sign out in the sim itself before I go to the desktop and quit the sim. I have to do this on each xbox when I use it, and not forget to sign out, even though I’ve quit the sim and shut off the xbox.
No more purchase issues!