Opening up your chest too early is a major cause of shoulder pain. It is critical that the rotating elements of throwing all come together at the correct time.
The trunk should be rotated at the same time as the arm is moving so that it is facing the target as the ball is released.
Technique in sports is critical. Chat to your PhysioPro for all injury prevention ideas about your sport.