I've built a wall around our village on realms and lit up the inside of the perimeter and the top of the wall. The wall is five blocks high and one thick. I'm planning on setting up more farm lands and lay down slabs to try and fix this issue but it appears to be a bug. I thought raids and scouting parties can't spawn withing a village perimeter. I haven't lost any villagers thankfully but I am down to iron goloms. Again I believe this is a bug but my understanding my be limited. It's also on normal and is played over realms. Thanks a million and any advice is welcome. This is also on Xbox one edition and is up to date with the latest bug fix.
Related issues
duplicates
Comments

Thank you for your report!
We're actually already tracking this issue at MCPE-58285, so I resolved and linked 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.
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:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki