Same happened to me. turns out I have gallstones. You should talk to your doctor to rule out gallstones and kidney infections. They didn't find mine until 30 weeks so now I have to live with it until baby's here, where as I could've gotten It removed in the second trimester and avoided this pain.
I had the same problem and I went to the hospital cause my pain got worst it turned out to be a kidney infection , they told me its common in pregnancy but it need to be treated asap cause you could have a miscarriage , I was 16 weeks when I had to be hospitalized for that , I'm not trying to scare you but just giving you a heads up I could be wrong you might not have that but just make sure .
Do you have a pregnancy pillow? Mine has really helped me!