So I have the same issue and my doctor doesn't really help with it. Apparently it's very common among people with breathing difficulties. What I've done to alleviate the pain is placing a warm towel over my ribs.I think this helps the swelling caused my our lungs hitting against our ribs. I'm not a doctor so maybe talk to your doctor about placing a warm towel.