Hey man, I hope your'e recovering from your injury smoothly.
I have had a recurring injury in my right shoulder after experimenting with some olympic lifting.
Since I have had lower back injuries in the past I didnt want this to escalate into something irreversible, so I went to research the issue immediately.
I discovered that I had something called upper cross syndrome which a large chunk of the population has.
Our modern lifestyles favor us to use the front of our bodies when driving, sitting, writing, typing, etc. This leads to the weakening of the back and rotator cuff muscles, and tightness in the muscles at the front of the body. When this happens, the shoulder is pulled out of its axis of rotation and leads to inflammation in tendons/ligaments when we go through a specific range of motion.
The way I solved my issue is by focusing A LOT on my upper back strength. I did various movements like band face pulls, band pull aparts, inverted rows, chest supported rows, etc.
I also focused on improving my posture and mobility especially in the thoracic region (the area where your ribs are). I did things like wall slides, shoulder dislocations, scapular circles, egyptians, etc.
Finally, I avoided any heavy overhead and horizontal pressing until the issue improved
Im just stating how I recovered from my injury. Feel free to try out what I stated above, but it would be very helpful to get a diagnosis as to what is going on with your shoulder exactly.
Let me know if you have any questions.
Get well soon!