Quadratic stability in the circle theorem or positivity theorem