Not only is my player halfway off the bed, but sometimes one of the arms will be stuck sticking up at an odd angle, like it was frozen in the middle of the walking/sprinting animation.
Any idea of why movement is not just completely removed? It could be easy if something like a minecart or boat interaction happened, where the client knows the player has an anchor or something and it doesn’t move from there.
Jumping even while walking has a substantial effect on the misplacement, it can even get you off the bed for the duration of the sleep if your momentum stops right before you reach the barrier that places you back into the center.
Simpler ways to reproduce:
Walk towards the bed as you enter it and you will slide slightly, becoming misaligned.
Sprint towards the bed as you enter it and you will slide even more.
Sprint towards the side of the bed under the Speed II effect and you will slide out of the bed.
I think the same behavior is what is causing the Villagers to become misaligned when they go to sleep.