I think gluten is like lactose, fiber, fat, etc.: if you suddenly eat more than you usually do, your body will need a time to adapt your digestion to it. This looks like more than moderate discomfort, though.
How much time? I've given it like 6 months where I'm eating wheat again before I'm forced to stop because the symptoms become way too much to deal with.
I think I replied to the wrong comment, but I ammended mine. Your situation looks more serious than the expected temporary discomfort. Depending on the person, the adaptation shouldn't last more than a few weeks.