I just got a minecraft realm for me and my friends and I've noticed a bug where everytime I die near a block where no lava or water is in sight, no matter if it's on the surface or underground, all of the items disappear and I loose all of my progress even though I have no special settings on or anything like that.
Linked issues
Comments 4
Anecdotally seems to be more common in recent weeks; although this could be caused by MCPE-21416 and/or MCPE-62944
I suspect this is a bug in general, not just Realms, given the seemingly increased rate of similar reports for the MCPE project. Perhaps MCPE-48370 was not fully fixed, or a new bug arose in its place. However it will be difficult to confirm as it is not consistent behaviour.
Turn on keepinventory for now, and when the problem gets fixed in 5 centuries you can turn it off.