If the bed is on a air block with blocks either right on top of it or a block above it, the player will glitch out entirely. NOTE: Try this for yourself, Minecraft team, because it's really hard to show with pictures.
Related issues
Attachments
Comments

[media][media][media]

Does MC-112 describe your issue?

No it does not. This creates a strange jittery motion.

Can you possibly attach a video showing what you are seeing? For me it is only very short jittery.