Put the summary of the bug you're having here
What I expected to happen was...:
That i wake up on my bed not through a wall that was next to my bed
What actually happened was...:
I spawned on the other side of a wall taht was next to my bed
Steps to Reproduce:
1. put your bed infront of a wall
2. Wait for night time
3. Sleep in bed
Related issues
Attachments
Comments

Duplicate of MC-146360

This is not a duplicate of MC-146360 . That report complains about being placed within a wall, this about being placed on the other side of a wall.
I have the same (or similar) issue as this myself in 1.14.1 prerelease 2. Having placed a bed in a pillager outpost, I woke diagonally outside to the southwest, and 2 blocks lower! The game placed me there in preference to the 5 blocks adjacent on the same level, or on the bed itself.
Sort-of related: being placed diagonally next to a bed is always a little wierd, sometimes bad. Positions directly (not diagonally) adjacent to the sides of the bed are always preferable. Prioritising them would fix the issue for me.
Attaching screenshot 2019-05-10_14.55.19.png showing the bed and yellow concrete showing where I was placed on waking up.
Note: There were vines on the walls next to where I was placed. Might that have caused the code to think the location at the same height of the bed was suitable?
How do you know? You're not the reporter of this ticket.
Your issue sounds like MC-68200, which is working as intended.

It is indeed the same as MC-68200 which didn't come up in search. Commenting there.