Thanks for your question on Health Care Magic.
I can understand your concern.
Since your pain is associated with movements and you are having bad postures in sleep, possibility of pulled muscle is more.
No need to worry for rubbing of ribs.
Do following things, you will definitely improve.
1. Avoid heavyweight lifting and strenuous exercise.
2. Avoid movements causing pain.
3. Avoid bad postures in sleep.
4. Start painkiller and
muscle relaxant drugs.
5. Apply warm water pad on affected areas.
Don't worry, you will be alright.
Hope I have solved your query.
Wish you good health. Thanks.