Prayer is disliked while strongly resisting urine, stool, or wind because the state seriously interferes with proper prayer and Khushu.
The list also discusses praying while carrying a non-disqualifying amount of impurity. If time or congregation would be lost by stopping to remove it, the source allows continuing; otherwise it recommends cutting the prayer and removing the impurity before restarting.
This is more precise than calling every small impurity an automatic invalidator.