Under what condition is a follower's (Ma'mum) prayer invalidated regarding his physical alignment with the Imam?

Following the Imam and Row Formation