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

No.