The root cause of main deflection on gantry machine is twist of gantry itself. It must be very stiff... This is the reason why it is not usual design for metalworking machines.

Think about mineral cast instead of beams. Weight-wise approx same, cost-wise probably same..., stiffness-wise much better, (also for Z beam)...

regards