I’ve only tested this in worlds where the game mode is Creative and the difficulty is Peaceful, and commands allowed upon first creating the world. If I then set the default game mode to Adventure after creating the world using the /defaultgamemode command and then die via the /kill command around 1 to 5 times, it eventually spawns me at y = -63. If I set the default game mode back to Adventure, once again using the /defaultgamemode command, it seems to go back to normal. Note that this only affects the worldspawn in my experience, and if I have my spawn set to a bed, it will not put me in the ground unless the bed is obstructed.
Thank you for your report!
We're tracking this issue in MC-302519, so this ticket is being resolved and linked as a Duplicate.
If you would like to add a vote and any extra information to the main ticket, it would be appreciated.
If you haven't already, please make use of the search feature to see if an issue you are about to report has already been reported.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki