I am including two shoulder movements here, which have gotten somewhat of a misunderstanding on how to preform them and the dangers that might follow. This is my view only.
True, as with upright row, a few should avoid the press behind the neck (or behind the neck presses as some say). This would also include DL's & BB benching. Notice that I said a few because generally speaking the press behind neck is one of the better delt developer there is.
I have SS'ed the press behind the neck and upright rows in the past, with very good results. Developing a stronger shoulder girdle in the process. Have also jerked pressed from behind the neck, as a regular part of a training plan.
With presses behind the neck it would be suggested to not have a too wide a grip, a few inches wider than shoulder width only. Try not lowering the bar below the upper trap/base of the neck area. Pay attention to a good warmup, including shoulder stretches. (look that up..lot of ways for warmups & stretches).
With upright rows, the bar should be raised nearest to the body as possible, from start to finish, and to about shoulder height. Much more stress is directed to the shoulder joints when the bar is raised out and away from the body. Also no need to come near the jaw/chin, which can put undo stress on the shoulders and even the wrist.
With both exercises there is the danger of rushing the weight, trying to use too heavy a weight when first starting out with these two exercises. Ease into this type shoulder work slowly. After a few weeks, if feeling discomfort, your body not adjusting to them or the idea that either of these two exercise are not meant for you...than just drop them from workouts.
Try not ending up like a few heavy bencher's who know that the pain and injuries keep mounting up and keep benching anyway, year after year. You can't work around those kind of serious problems. Even some who have had shoulder, elbow, tricep or pec surgery's. I've known a few guy's like that. Even one female lifter.
Good Luck