Chest out, shoulders back is what PE teachers told you. It locks your mid-back and limits breathing.
Holding any position requires muscles to work constantly. Work constantly and they tighten. The posture you forced becomes harder to maintain.
Open the chest and the good posture happens on its own.