Exiting the world in/near certain blocks or entities cause the player to spawn in an incorrect location when reloading the world.
Saving while in a boat caused me to respawn on the shore/bottom of the ocean, about 30 blocks away.
Saving while standing in the same block as a glass pane or fence post caused me to respawn on top of my house (same X,Z coordinates)
Thank you for your report!
However, this issue has been closed as a Duplicate of MCPE-31242.
Please add a vote and any new information to the main ticket, which will be updated accordingly.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki