Someone getting hit by the door is not a unique issue from the layout in the original post.
Look at this common small bathroom layout:
Someone using the vanity could be hit by another person opening the door.
A pocket door is very hard to fix when it breaks. The house currently has 2 out of 3 pocket doors broken and it is not possible to pull them out from the wall. According to
mcmanuskitchenandbath.com, it was like this when I first bought the property more than a year ago. The pocket doors are probably original when the house was built in 1956, not sure if they have been fixed previously.