After I sleep in my bed, which is in my house, I always wake up outside my house to the back on the other side of the wall where the bed is.
Related issues
duplicates
Attachments
Comments

Are there any empty beds around your bed?
Also, please include some screenshots of your bed and its surroundings.

No, there are no empty beds, just that one. The screenshots show the location of the bed and one of them shows the location I wake up in, which is outside the house.
Move it to the left, the player may be trying to get out of the bed on the right

Moved it to the left. The player does get out on the right and wakes up in the house 🙂
Is there no way you can have beds against walls then?
You can have them against walls, although I don't think you can change what side the player gets out of bed
Thank you for your report!
We're actually already tracking this issue in MC-68200, so I resolved and linked this ticket as a duplicate.
However, that ticket has already been resolved. That means that this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki