Low Neck/Upper Trap Pain on Bench

Hi! Every so often I’ll catch myself doing a shrug at the bottom of a heavier set of bench press which usually results in an acute pain in my lower neck/trap area (mostly on the left side for some reason.)

The area immediately stiffens and usually stays tender for a day or so before subsiding. Just wondering what I might be messing up so I can avoid this in the future.