A disliked action does not necessarily invalidate prayer. Speech and eating can invalidate it. Limited movement to remove a real obstruction is yet another category.
Opening interactive controls...
Disliked, invalidating, and necessary actions
Disliked Acts in Prayer: Movement, Dress, Turning and Validity
A disliked action does not necessarily invalidate prayer. Speech and eating can invalidate it. Limited movement to remove a real obstruction is yet another category.