Interesting reading this because the one thing I have had problems with the last 4 months was an occasional severe bloating that extends my abdomen out painfully far, and a sharp pain that feels stuck. Often it’s accompanied by acid reflux. If I try to use gas-X or Sodium Bicarbonate I am curled in a ball on my living room floor at 2 am until suddenly I have an exorcist-worthy vomiting session - every time. Then it’s over and I can sleep. A few days ago I had one of these attacks and I didn’t want to throw up so I endured the pain lying in bed on my left side for four straight hours until I could finally get up and move around easier. I drank my electrolytes as usual with my supplements, and took some magnesium. My electrolytes drink alone usually keeps me regular in the morning but the added magnesium on that morning really hit the empty button. After that I only had a mild discomfort. But it took twice as long to get the pain to pass than the vomiting route took.
I noticed the first time it happened it was after eating a good amount of mixed nuts earlier in the night, and then a coconut flaked snack mix. The second time I had eaten this yummy quickie evening snack I make to stave off hunger pains that start. It’s a mix of 1T unsweetened coconut butter and 1T unsweetened almond butter. (Truly more delicious than it may sound, like a creamy mousse.) It always works and never causes gas or digestive upset but for that one night. I thought maybe the mixed nuts were the culprit but then why don’t they cause this when I eat them early in the day? Regardless I will no longer eat more than a T or two of whole almonds or mixed nuts in the evenings anymore.
I too use MCT oil in my hot teas or decaf coffees, and I use collagen peptide powder in it too.
I should note that back in 2009 this had been happening every other day and sometimes I would get a sharp pain in my chest too. They couldn’t find any reason for it so the GI removed my gallbladder. Then this happened every single time I ate! They put me on omeprazole and the clowns left me on it for 13 years! (1-2 months is longest you should ever be on it.) Enter the severe advanced osteoporosis it no doubt made worse if not triggered it. I discovered Serious Keto’s video and Dr Berg’s guide about the ACV drink regimen and started that a little under a year ago and stopped the omeprazole at the same time. It worked for a long while but then four months ago this started again. Still, the ACV cocktail really does help some. I also take Dr Bergs Gallbladder supplement and a prebiotic at dinner every night.
But I get an attack about once every week now. 
Just sounds similar to your issue.