The pathfinding of walking villagers sometimes lets them hit a cactus and die.
Sometimes they walk too close past a cactus, so they touch it with the shoulder and get damage. Sometimes they even walk directly into the cactus and die.
Attached screenshot is a villager moments before walking into a cactus. (I didnt get the exact moment he gets damage)
Linked issues
relates to 1
Attachments
Comments 2

Cleaning up old tickets: This ticket has not been updated recently (~1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
This does not only affect villagers it affects other mobs like skeletons, zombies, ...
This might be work as intended since the mobs AI aren't smart enough to walk perfectly without getting hurt.