It is a clear violation of 300.3(B).
It is also a very poor design, do not install it like that.
Others with more theory knowledge can explain it better, but what I understand is that a EGC run away from the circuit conductors can have so much impedance during a short circuit that the OCP may not open quickly or at all.