I've also had reactions to xanthan gum- I accidentally ate a bit too much of it a week ago and it was unpleasant and painful.
Perhaps you have gastritis and inflammation. I have this and a lot of foods can bother me, not just gluten and dairy (which for me just cause bloating, pain, and constipation). Right now I'm sticking to eating very little...