Hi manjjs, welcome to the forum.
We cannot diagnose on the forum but from my experiences , this sounds a lot like Gall stone problems. You need to get to see a doctor and get ultra sound done to check your gall bladder.
Try keeping a food diary and see if there is anything that triggers this pain. In my case it was eating eggs but it can be triggered by high fat intake as well.
Alternatively, when you get an attack , can you go to the nearest hospital A & E ?