If a villager is standing on the opposite side of a wall compared to its bed, it can glitch through the wall if pushed/hit into the wall while it is trying to go to bed.
See this video as a reference. https://youtu.be/zRqB_vGTKqQ
Tested in both 1.16.4 and the new snapshots.
Linked issues
Attachments
Comments
@Avoma, it is not the same, in MC-160582, villagers try to pathfind throgh a wall, that is not what is happening in this bug, here they glitch through it.

Can this still be reproduced in 1.18.2 or later?
This bug is still present in 1.18.2.
Can confirm in 1.20.4 and 23w51b:
[media]
Hey there!
This report appears to be a duplicate of MC-160582.