Does doubting about passing gas during namaz makes it baatil? Because I have been this issue of doubt for few years and I always redo my namaz about 5 times

That doubt does not invalidate the salat. There is no need to repeat it.