Normally you would set the switch offset to a fixed value. It is difficult to allow for the metal flexing because that depneds on where you touch off. If you are directly over the support grid the work won’t deflect at all.
If deflection is a problem the only reliable solution is to reduce the force needed to activate the switch. If your torch/torch mount is heavy you may need to use a spring to take some of the weight.