Shoulder Pain wth Certain Movements

I’ll try to keep this short;

On day to day life, I experience tightness with my shoulders, so I have a habit of cracking them and externally rotating them to loosen them up. When I externally rotate them, I have this tightness and slightly painful crack.

They don’t boring during typical problem movements (bench, dips, press), but they bother me during all overhand pulling movements.
I can’t do palm away pullups, barbell rows, seated wide grip rows, etc
Chin ups, DB rows and Neutral Grip rowing doesn’t bother me at all.

How could I go about adressing this issue, so that in the future I have a fully functional shoulder girdle and can do those movements pain free?