I have not played in a while and when I went to play I signed in like normal and clicked the play button for Minecraft Java on the Launcher and was given a create username box despite I have already done this before and when I enter my previously chosen username it says already taken and if I try to use a different one it says "Failed to creat profile".
Thank you for your report!
We're tracking this issue in MCL-20496, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Fixed. Please reach out to https://aka.ms/Minecraft-Support as soon as possible.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki