Anyone out there have clavicle pain on the shoulder end, not the chest end, of the collar bone? I'm sure it will get better with rest or seeing the doctor but how do I avoid this type of injury? Is it shit technique or just being shit old and pushing too hard? Looking for experienced lifter's advice.

EDIT: Thanks for the advice everyone. I think it was the bench press and shoulder press machine, I haven't been doing overhead press yet. I've been pushing for maximum weight and seen alot of gains, just tried to make progress too fast. Pissed I can't work out today.