Just avoid working the area directly for 7-10 days, then see if you can do the exercises without pain but ensure thorough warmup, moderate reps and rests between sets that don't exceed a minute, to keep the area warm.
If that still doesn't work, take 7-10 days' break from weights.
If that still doesn't fix it, it's more serious see a doctor. Get more than one opinion if necessary.