When leaving the nether the character dies during the loading screen when they are unable to donor see anything. This has happened randomly on now 4 occasions. Each time, the character can be seen to take damage with no harm or danger present while standing within the opening of the portal by other characters present. This seems to have no specific trigger. The cause of death displays to the other players as "suffocated in a wall". Network connectivity was suggested as a possible issue, but this is odd to not disconnect from the server vs killing the character under this specific circumstance only. The common elements of the situation I experienced is as follows:
Exiting the nether using a portal built in the nether
Realm set to peaceful
Notification displays to other players character "suffocated in a wall".
Damage hits can be heard sometimes in the loading screen.
Other players observe red flashing and damage sounds on the character standing in the portal with no danger near the character
Player loses XP, inventory, armor, & is teleported back to spawn bed.
(once a player in my realm spawned to the original spawn point after experiencing this but lost nothing.
We do not have/never have had any mods or cheats activated.
This is a recent development.
In order to reduce the losses incurred in this unpredictable event, we have resorted to placing an enderchest inside the only portal entrance we will use now in order to strip off our armor and inventory items upon leaving.
This does not enhance the enjoyment of the game. It's extremely distressing to have lost 2 sets of netherite and gold armor.
Related issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-146959, 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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.