The only contribution I feel like adding is that I suspect that your pain is in one organ that can be moved by the force of gravity when you lie down on your right. It could be your left kidney for example.
You need to talk to a Doc. And indicate exactly where the pain is.