I have the same intermittent attacks that you all are having. My problem is that the bile duct from my liver does not always open properly. This causes bile to back up in the liver and causes the spasms. If you could have bloodwork done to test your liver enzymes right after an attack, your results would be "elevated liver enzymes." This is not a good thing. Ask your primary doc to give you a request for bloodwork to test your liver enzymes. Keep this paperwork until you have an attack. Then go asap to the lab to get the blood test and have the results sent to your doctor.
I had my gall bladder removed in 2002 and these spasms started in 2006. I can go months with no problem, and then have them almost every day for a week. I had every test possible, 5 ultrasounds, 2 endoscopies, an MRI, all bloodwork, etc. Everything was always normal. The first GI doctor said he'd never heard of this in his 20 years of practice. The second GI doctor refused to look at my log of "episodes" or listen to anything I told him. I turned it over to my primary care doc and he diagnosed it.
These spasms always happen at 6:30 a.m. (or 5:30 a.m. when we do the daylight savings thing). It really doesn't matter what or when I eat before going to bed. I have stopped keeping logs and worrying about it. Sometimes this bile duct just doesn't work right for whatever reason.
This is what I found helps me. 1) Stopped taking fish oil supplements. 2) I don't drink any water if I get up in the middle of the night. 3) When I feel the spasm starting, I bend over from the waist (over the toilet if needed) and try hard to vomit. At 5:30 a.m. my stomach is empty so nothing is vomited. But the force of trying really hard to vomit seems to relax the spasm. I also deeply massage the whole stomach area while I'm bent over. 4) Then I take a 2mg Diazepam (my primary doc prescribed this) and get back in bed and lie on my right side with a heating pad over the stomach area. I keep doing this until the Diazepam starts working in about 10 minutes. This may not be scientific but it's a lot better than what the GI doctors tell you. Both of these guys said they could do a procedure to cut a slit in the bile duct opening to prevent a build-up of bile. Of course they don't know if this would work since they don't really know what causes the spasm. I like my solution better.