R.J.
A 'stitch in your side' is what you are describing.
Typically caused by blood flowing through the liver during unaccustomed exercise.
Eating something fatty right before strenuous exercise will help as the gallbladder will dump its bile contents, allowing more blood to flow through the liver.
As the liver becomes more accustomed to filtering the heavy blood load, the stitch goes away.