It sound like IBS because I have the same problems and have had many test ran and all they could come up with was IBS.. I have episodes like that all the time but they are random and can last anywhere from two days until two weeks which is so uncomfortable.. When you are in pain like that, try not to eat anything solid and don't eat too much at one time.. With IBS certain foods can trigger it as well as stress or your nerves.. I was told to eat like one thing at a time when i'm having flare ups to try to figure out what foods make it worse so you can know not to eat that particular thing.. I hope this helps but even with me doing that I still have them sometimes and now that I am pregnant, it seem like its worse..
I have a similar problem and the doctor still don't know exactly what's causing it. She put me on Omeprazole and I felt like it made it worser..I quit taking it after 3 weeks cause they worsened, plus it gave me watery diarrhea. I've gone 2 days without eating cause it hurted so bad. I was afraid to try to eat anything. But I found out yogurt helps a lot, having soups, and only meat would be chicken that actually felt good in my tummy with no issues.Grains actually worsened it and I though it would help :/ I haven't gone back to the doctor since the last prescription..kinda gave up on it due to I am uninsured and keep on throwing money out there on doctor visits and prescriptions.