Wavefront-sensor-induced beam size error: Physical mechanism, sensitivity-analysis and correction method