Yes a Physiotherapist will be able to assess your spine and your musculoskeletal structures that is causing pain , a thorough assessment of your posture and alignment can give an idea as to why you are getting these episodes . Going through a complete rehab with a Physio and then following your gym routine will give you a solution.
Next Steps
Get assessed by a good Physio
Health Tips
Avoid doing any activity too past too soon without any rest , make sure you are hydrating well and sleeping well .. recovery is very important to avoid injury .