Summary:
When a village is generated for the first time, a villager can spawn on top of their bed in a house where the roof is only 1 block above the bed, causing the villager to suffocate.
Steps to Reproduce:
Create a new world with the seed -1235243567
/tp -296 68 -798
Observed Results:
The villager spawns on top of their bed and suffocates.
Expected Results:
The villager should spawn beside their bed.
Video:
[media]Notes:
A baby villager can spawn sometimes, so the steps will need to be repeated when that happens.
I found the seed and coordinates where the villager spawns inside the block, not on the bed, although villager does not suffocate and can easily leave the blocks.
This seed also contains a standard example from the report: