Hi,
I think the reason for that happen maybe you are over fatigue. If you happen to experience that problem again just relax, sit and deep breathing exercise. We experience chest pain sometimes if our body is short of oxygen the heart compensates for the lack of oxygen. Maybe that is the reason why you experienced chest pain. Just relax and take it easy.