There are cases it can invalidates the prayer but wudu will not break if your crying out of pain and so on .figure out