It is not clear how high or near vertically or horizontally comes the sprinkler with other members. Are you talking about the large beam above the sprinkler or the channel which appears next to it? I recommend do a sketch and compair it against the rules of 10.2.7 and figure 10.2.7.1.2 of edition 19.
Also the hanger is too close to the head. See 17.4.3.3.