I recently built stone walls three blocks or so high (depending on the terrain) around a village to protect it from Illager raids. This caused some villagers to despawn, leaving only three.
My problem is still similar to this user's problem:
https://bugs.mojang.com/browse/MCPE-49801?jql=text%20~%20%22Villager%20despawning%22
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-153904, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord