@MojangSupport so currently mincraft bedrock will completely freeze your game if you: exit a realm, sign out of your Microsoft account, CLOSE THE GAME, fly too fast with a elytra, use an anvil, or even exit a single player world.
I'm really sorry to hear that's happening! I would go ahead and report that here: https://bugs.mojang.com/secure/Dashboard.jspa … so that the developers can see and look into it further. ^AS