If I were you, I would give my digestive system a rest. Juices only and see if you can tolerate those. It sounds like you are heading for big trouble. When an animal gets sick they quit eating til they heal. You need the minerals and vitamins and enzymes that raw juices can provide.
I have no idea if it's your pancreas or not...my brother had something similar ..they removed his gallbladder but it didn't help and then they found out he had pancreatic cancer that the doctors missed...
The fact that when you eat you get pain, it's telling you eating is not good for your body at the moment.
If you do eat anything, I would make sure to take digestive enzymes with your food. I find I am having problems digesting sugars and starches, so I too have had to give up my food. :(