There could be a ton of reasons why this happens from muscle imbalances, overtraining, dehydration, unhealthy tissues, etc. I guess take a look at your form but your issue is more the quality of you muscle than your training. So heal up and prevent the issue from returning!