I think this is due to excessive lactic acid leaking through. When I tried to take variuos kefir products I would develop a lot of body aches and pains and also stomach cramping. Saurkraut wasn't too bad though so maybe it depends on the type of bacteria.
A low fermentive diet like the SCD diet may help in this case.