Raw carrots = stomach pain?

You possibly do have an allergy.
I forget what it is called but there is an allergy that pertains to raw carrots.
Cooked are fine, breaks down the proteins the body is not liking.

Something about the proteins in the carrots being similar to birch pollen

You might look into it