Thanks for posting this question in HCM
Let me explain you that a given medical problem can be due to various causes and the main objective is to establish the cause. Some patients can have multiple causes for the same problem. I mean a given problem can be multifactorial.
Back to you the pain that you have may suggest a possibility of local nerve/nerve root compression
. Some patients with local gastrointestinal infection
can also result in nerve compression which can cause pain too, the way you have posted here.
I strongly advise you to undergo evaluation in hospital having multidisciplinary facility like general surgery, neurology and so on..
I suspect that you have local gastrointestinal infection which might have compressed local nerve. This can cause the pain you have. This can be solved by doing a MRI
scan. However your doctor will guide you through examinations and various tests
So you need immediate medical attention. Please don’t wait further
Hope this helps