Don't use special code, and don't use screws. Or just 2 outside the work area.
Have a pressure brush ring around the spindle that forces the PCB down against the spoil board.
Safe height needs to be high enough for board flex. Maybe 1mm.
Just like the big machines do.