Be very very careful logging into your account on other devices. Back when I still had a Microsoft account I tried to log into Minecraft on my Switch. My legally owned bought copy of Minecraft on my legally owned bought Switch hardware.
My account was locked for "unacceptable activity" or whatever they called it and I found out that you can *NOT* contact Microsoft in any form to get them to unlock an account. You *MUST* give them your own mobile phone number (no mobile phone? Too bad, you don't deserve to have an account if you can't give them your private number) for them to send a text to so they can link your personal info better in their system to track you better.
Back then I got a friend to take the message for me. (I have since let my MS account expire and good riddance.)