The issue - This mostly happen when I join my survival world and it doesn't read my inventory and it put me back at spawn. This can happen if the world file is to big.
What could happen? - If the rejoining world trick don't work, your world inventory could be corrupted.
How could it happen? - You can lose all your item in your inventory or It can also be loading/saving issue.
How do I prevent this from happening? - Make a world back up if you ever lose your items.
( I saw this same bug again but why or how? But this time a new release of 1.19.63. Leave a comment on how you would experience this issue. )
Related issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-164765, 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, 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