From history it seems that you might be having sublaxation of shoulder joint giving rise to recurrent dislocation.
This might be due to lax shoulder muscles.
In this case Arthroscopic surgery
consult orthopedic surgeon and get examined.
Ask about alternative to surgery like strengthening shoulder muscle exercises
Meanwhile avoid full joint movement to prevent recurrence.
Ok and take care.