I saw a ticket for Java Edition but did not see one for Bedrock Edition + Realms.
Named villagers disappear without a trace in custom built villages in Bedrock Edition Realms. They have been completely protected from mobs and nature but still will disappear. This also happens to leashed + named horses and iron golems that are also protected from hostile mobs/nature.
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue at MCPE-21416, so I will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki