I understand your concern.
Well abdominal pain and flatulence themselves don't suggest nut allergy as there can be other symptoms like itching,rash,shortness of breath,diarrhea,vomiting are associated.
It can be possible to have improper digestion of such nuts.
You should avoid their consumption for a while.
And take metamucil and Mylanta gas.
Also start a probiotic.
Hydrate yourself with plenty of fluids.
Eat a bland diet for few days.
If your symptoms'll persist then see your doctor for further evaluation and management.
Let me know if you have any further query so we can discuss it thoroughly in every aspect.
It’s my pleasure to continue this conversation until you satisfy.
May I help you further?
Please to not forget a positive rating and avoid poor/bad rating.
Bonus is highly appreciated.
Waiting for your response.