In launcher settings, enable "Open output log when Minecraft: Java Edition starts."
Find villages in the Snowy Plains and observe output messages.
Example:
World type: Default, Random Seed: -3674117392549763214
Villager bma['Villager'/42982, l='ServerLevel[21w41a]', x=-5835.72, y=72.56, z=694.37] died, message: 'Villager suffocated in a wall'
Villager bma['Villager'/42982, l='ClientLevel', x=-5835.72, y=72.56, z=694.37] died, message: 'Villager died'
Villager bma['Nitwit'/43178, l='ServerLevel[21w41a]', x=-5848.37, y=72.56, z=717.28] died, message: 'Nitwit suffocated in a wall'
Villager bma['Nitwit'/43178, l='ClientLevel', x=-5848.37, y=72.56, z=717.28] died, message: 'Nitwit died'
Villager bma['Nitwit'/51005, l='ServerLevel[21w41a]', x=-6840.37, y=93.56, z=66.28] died, message: 'Nitwit suffocated in a wall'
Villager bma['Nitwit'/51005, l='ClientLevel', x=-6840.37, y=93.56, z=66.28] died, message: 'Nitwit died'
Villager bma['Villager'/56059, l='ServerLevel[21w41a]', x=-6683.28, y=68.50, z=-896.37] died, message: 'Villager suffocated in a wall'
Villager bma['Villager'/56059, l='ClientLevel', x=-6683.28, y=68.50, z=-896.37] died, message: 'Villager died'
Villager bma['Villager'/90989, l='ServerLevel[21w41a]', x=-5835.72, y=91.56, z=-754.63] died, message: 'Villager suffocated in a wall'
Villager bma['Villager'/90989, l='ClientLevel', x=-5835.72, y=91.56, z=-754.63] died, message: 'Villager died'
Villager bma['Villager'/102210, l='ServerLevel[21w41a]', x=-6976.63, y=71.56, z=-2686.28] died, message: 'Villager suffocated in a wall'
Linked issues
Attachments
Comments

Thank you for your report!
We're tracking this issue in MC-146770, 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
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
You're experiencing this issue due to the fact that villagers sometimes spawn floating and offset, causing them to suffocate, therefore making this a duplicate of MC-146770.