In his response to the Islamic ruling on controlling the wind , Dr. Rajab AbuMaleeh, issued the following verdict:
“…it is allowed for you to control your self and keep your wudu‘ till you finish your Prayer and hence your Prayer will be valid.
However, if this case is incidental and not chronic, you have to pass your wind and repeat your ablution and perform Prayer, since there is a prohibition concerning that. It was narrated that ‘A’ishah said: I heard the Messenger of Allah (peace and blessings of Allah be upon him) says: “There is no prayer when food is ready or when one is trying to stop oneself doing either of the two things that break wudu’’ (i.e., urination and defecation and wind is like them).
Any way you should ignore these Waswash and doubts altogether. You have to make wudu‘ once, paying no attention whatsoever to your fears of passing wind. The well-established sharia rule is that certainty can not be removed by doubt. So, to have doubts about passing wind is not enough to nullify your wudu’. In addition, what you experience is not even doubts; it is rather one form of OCD that requires consulting a psychiatrist to get necessary medication. Many people suffered similar symptoms and overcome them after receiving medication.”