While playing the most recent version (ver. 1.19.3), I noticed that Villagers would often use a door to enter or exit a structure, but they would not close the door afterwards. My guess from watching is that they do not close the door about 30% to 50% of the time. This, of course, leaves them very vulnerable to Zombies when the Villager goes inside to sleep.
Thank you for your report!
We're tracking this issue in MC-256129, so this ticket is being resolved and linked 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:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki