Update: The most recent time this happened, the game deposited me in the nether at the same coordinates as I had left the surface world. I.e. I entered the nether portal at around -3000, 64, 400 in the surface world and after the game timed out and I exited the game and logged back in, I found myself at -3000, 64, 400 in the nether, an area which I've never explored as it is too far from my base, being equivalent to a surface location of -24000, 64, 3200.
Since this bug, I made each of my librarians their own 2x3 bedroom and there are no cats present, yet they are still not engaging in normal sleep. The ones in my other area are flying out of their beds when bumped but this lot aren't being bumped, unless they are going into the wrong rooms at night? I honestly don't know what else we can do. Especially given that people whose villagers are in trading hall stalls, with no bed, still report disappearing villagers. Wasting so much gold on apples...
ETA: 2020-12-11 I updated the game following the patch yesterday and am no longer having issues.
[media]Still no change to my villagers, they're sleeping in weird positions still, most villagers have dissappeared as mentioned before. Now my named zombies have all dissappeared as well; I had four of them. I've been seeing other mob bugs as well such as zombies in a spawner appearing to be frozen in place and a slime which was also frozen in place while simultaneously attacking me 15 or so blocks away from where it appeared to be. I'm really frustrated about the villager situation because I can't replace them until I know their replacements wont also dissappear.
I'm seeing the same problem in Bedrock on PC as of patch 1.16.100 update today. Some villagers are invisible and reappear when you restart the game but they don't all reappear at the same time. I've also seen them opening/closing doors while invisible. Most have definitely died/despawned because babies have appeared in their place, so I've had to go around destroying beds. Villagers are glitching though walls while sleeping, sleeping at the wrong time of day. All mine were cured villagers with 1 emerald trades, now the remaining ones have all reverted to standard high prices. All were named via a nametag. Eta, now some are sleeping on the floor and others I can't interact with. Every conceivable villager glitch is happening.
Update: I've done some testing, and the game is reliably depositing me in the nether/overworld at the same coordinates as where I entered the nether portal. Which means that if the bug occurs below Y=0 in the overworld, there's a high probability of falling through the world.