Sounds odd, was it an off balance, cross/"haymaker", or was it a jab with a lot of weight behind it & your body locked?
I used to do a lot of competitive martial arts, the only time I've injured myself striking was with improper technique.
Not saying that's what happened.
Idk, how training differs, but I'm sure there are differences.
Take it easy on it, shoulder injuries can linger.