It does sound as if you placed your shoulder into the apprehension position and since you have a history of shoulder instability you had the feeling of a slip. Do you do rotator cuff strengthening? It is important to maintain the strength of the shoulder and scapula stabilisers and not just focus on power when it comes to the shoulder.