Nonlinear signal distortion corrections through quantum sensing