both issues are caused by them not having weapons, they are the same ozone
this has been a thing for years, this is well known and has been used in hundreds of speedruns as well, look through the speedrun.com Minecraft 1.9- 1.15 submissions where they use it to find ocean monuments shipwrecks or so they don't pass by the stronghold when boating, it's not hurting anybody so its not likely to be patched
I'm like 95% sure this is the same issue as MC-129036 with several people in the reply's talking about non generated strongholds
and fence gates
the hitboxes are colliding its just sleeping villagers have really small hitboxes