Just an idea....a lot of that sounds very familiar from an episode I had a few months ago. I had electric shock type spasms, mad sweating and tremors, pain in just aout every bit of me, then the GI symptoms you describe so well

- I thought I was going crazy some days. I saw two docs in three days, they were a bit lost frankly, no real ideas, saw one of them for the third time and he finally did a proper GI exam, realised everything WAS hurting and ordered blood tests. I'd had my gall bladder removed ten years ago and he thought I might have some bile leaking into my insides. Eek.
It was a med change that sorted everything out for me, I was lucky to work it out before they did the more invasive tests they had planned. The Gabapentin (Neurontin) I was on was screwing up my stomach big time, and everything else stemmed from that. I came off it and after a few days (during which I'm sure my body sighed with relief) things started to calm down. I'm not saying that your symptoms are due to meds, but just saying that there can be so many reasons for some of the strange symptoms we get at times. And sadly, too often WE have to be the detectives
I hope your symptoms are something that can be resolved quickly. It must be really distressing on top of the pain...
Bram