I wouldn't necessarily shorten the ROM. I would find variations of those movements that don't cause pain but strengthen that area.
There is no way I can overhead press without issues when I have a flare up. The more I press overhead, the worse things will get. I can do close grip benchpress though with minimal issue. Focusing on hitting a heavier single or triple is also less aggravating than do a set of 8-10 which seems counter intuitive.
As a personal example with my forearm tendonitis issues, I was able to do chinups with half my bodyweight added, with less pain than if I did a set of 10+. I did a ring variation which made it so I had to pull harder with my forearms, but could adjust the angle at the start.
Finding variations of those movements that don't hurt might be an option, provided that's advised from therapists.