I may look into that. The doctor I went to said he couldn't understand why I had pain, but he recommended sleeping straight and on my back, not on my sides.
But I have a feeling that whether I sleep with a latex topper or stop sleeping on my sides or both, if I mess around with a chinup bar the pain is likely to come back.