print error and halt if setrun has invalid value of num_fgmax_val