The pain felt under the ribcage, that is generally a sharp, stabbing pain, but may also be a dull ache or a burning sensation and it is usually worse when you take a deep breath, cough, or move around, is characteristic for pleurisy.
It is an inflammation of the pleura, a two layered sac that holds the lungs and separates them from the chest wall, diaphragm, and heart.
The cause can be viral respiratory infection or other cause, like pancreatitis (feeling bloated, chest pains, nausea, fever)
GERD, or having acid reflux can cause symptoms like chest pains and feeling bloated.
Best wishes!
Marija