The chest wall expansion is a muscular activity. The diaphragm is the muscles which lies under the lungs which is responsible partly for the expansion of chest along with the muscles inbetween the ribs. So in case of tiredness and early fatigue of muscles, the muscles tend to experience spasms. You need to consume lots of water and stay hydrated and also have a good electrolyte diet. Have bananas and fruits during your workout phase. They replenish most of the
electrolytes required by the body. In summer we tend to lose more electrolytes than in any other season.
Next Steps
This doesn't warrant any investigations especially if it is activity related and is associated purely with the chest wall muscles. iIf the pain is persistent and not resolving, please consult a physician