Sleeping hurts.

My sides throb at night when I lay on them too long. So I have to often switch sides and eventually both sides hurt so I can’t sleep comfortably at all. I don’t know how to relive it without medication.