As noted above, hanger rods for mechanical are not meant for bending. Diagonal strut bracing with stiffeners on the verticals is quite typical, spacing would depend on the piping size/weight/function.
There are a lot of good resources for mechanical seismic restraint design.
SMACNA has a code...