You should be able to run a 46/30t crank with a Sunrace (possibly others?) 11-40t cassette pretty easily using the GRX 400 (10 speed) rear mech. There's a thread on the riding gravel forum about using 42t cassettes with that mech with mixed results (probably OK), but the 40t would probably be safer w/o the b-screw maxed out.