Turning the chest away from the direction of the Qiblah without a valid excuse immediately invalidates the prayer.

Invalidations of Prayer Part 2: Excessive Actions and Excretions