Occasionally on Bedrock realms, a pillager will spawn alone and, upon it noticing and targeting a player, the realm will crash. The pillager does not need to be hit by the player, it just needs to notice the player. Typically this results in the world getting reverted to a previous save, losing everyone's progress. Unknown yet if this happens on singleplayer.
Reddit r/MCPE thread about this bug: https://www.reddit.com/r/MCPE/comments/dxyqdc/punching_illagers_on_patrol_sometimes_crashes_my/
Thank you for your report!
Crashes and related issues such as these are logged automatically, and will be looked into further by the development team - thank you for your patience and understanding while we get these issues resolved.
If you need help or support you might like to follow a link below.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki