I ran into this problem a while ago but I don't remember exactly what I did. I probably just restarted everything and let it fix itself lol.
You might want to make sure your account is still valid and hasn't been hacked or something, by logging into the Minecraft website.
Good luck with fixing it!