I had severe 'IBS' with explosive D, bloating, pain, reflux, weight gain and it has nearly completely resolved since I went gluten free.
Ok, this was an answer for
me, and it may not be the answer for
you, but given your situation it won't hurt to try.
Others will also try to answer you.... hang in there.