Hi Jenny, and thanks for your post. I am hopeful others in the community will see your question and respond by sharing their own personal experiences with COPD, rib cramping/pain, and following lung surgery.
I also wanted to mention we have a number of article published, right here on COPD.net, which focuses on COPD and rib pain/cramping. For your convenience, here is a link to several of those articles: https://copd.net/search?s=rib%20pain%20cramps.
I do hope you find the information is helpful to you in a practical way.
Wishing you well,
Leon (site moderator COPD.net)