Tree nut intolerance whilst pregnant

I have an intolerance to tree nuts, it’s not an allergy as I don’t go into anaphylactic shock or anything serious but get horrible stomach cramps which make me double over in pain and nausea.

I’m 24 weeks pregnant and accidentally ate some cake a co worker made which had blended almonds in it. Im now in a lot of discomfort with cramps etc.

I’ve tried to look online but can’t see anything but can this affect my baby? She’s not been as active, I’ve still felt her move but not as much as usual but unsure if it’s related. Any advice would be much appreciated.