Upper back hurts from OH pressing

My barbell overhead press form is pretty good as far as I know. Sorry for no vid but are there a few different things that might be causing this? It also hurts for front squats. I make sure my chest stays up, elbows stay forward, legs straight, I never lean back, and I lock out completely at the top.