A bed facing a door is not automatically unsafe or harmful; the real questions are privacy, night-time movement, light, noise, drafts, and whether the route crosses the foot of the bed.
Quick answer
Keep or adjust the position according to sleep comfort and safe clearance rather than a universal prohibition.
Check the direct sightline
An open hallway, bathroom light, or busy shared route may disturb sleep. A door stop, curtain, screen, or slight bed offset can change the experience without a full rearrangement.

Protect the exit route
Do not place a bench, chest, or decorative cure where it narrows movement to the door. Maintain access on the side needed by the sleeper.

Test simple corrections
Close the door, reduce spill light, reposition the bed slightly, or change the headboard orientation. Evaluate several nights instead of assuming symbolism caused the result.

Boundary: Feng shui is a cultural and design perspective. It cannot guarantee health, wealth, relationships, safety, or other outcomes. Use qualified professional advice for building, electrical, plumbing, fire-safety, accessibility, horticultural, or medical questions.