I doubt that all you describe is caused by the same thing. The "…sharp pains in my to part of my lungs,…" could be musculoskeletal from bone or muscle, neuritis from inflamed or compressed nerves, especially the intercostal nerves that run at the bottom edge of the ribs
and encircle one's chest, or simply "shooting pains" that are
sharp, often severe, "electricity-like
" pains that can occur in any part of the body and usually last from a few to 30 seconds or more.