Mushroom make my stomach ache so bad. Anyone else?

Sometimes mushrooms make me feel so sick. Like fried mushrooms etc. But mushrooms on pizza have never made my stomach hurt? Is it because no enough on there to effect my stomach? Anyone else have this what’s it mean? Allergy or what?