Hello and thank you for posting your health query on E health Forum.
Episodic abdominal pain could be due to renal stones. Pain that originates due to renal issues (Stones, infection) is episodic ,spasmodic or colicky in nature, originating in the flank and radiating to the lower belly, inner thigh or the testicles. It is associated with other symptoms like nausea, vomiting , etc.
You might consider consulting a Urologist for a physical examination and additional evaluations including a urinalysis, and an ultrasound of the abdomen and this will help to initiate necessary treatment.
I hope you find this information useful.