The hydraulic servo valve orifice becomes blunted due to erosion caused by solid particle contaminants in the oil, leading to a decline in the valve's static and dynamic performance. This study analyzes the working edge scanning model and proposes using a quarter-ellipse curve to fit the working edge contour for the precise calculation of the valve orifice area. Through AMESim simulation, this study investigates the relationship between valve orifice erosion and the static and dynamic characteristics of hydraulic servo slide valves and proposes a variable gain control method for addressing valve orifice erosion. Results show that the orifice area model based on the quarter elliptic curve is accurate. As erosion increases, the nonlinear area of the valve orifice curve expands, and the valve orifice degrades into a positive opening. The ratio of the long diameter to the short diameter of the ellipse is approximately linearly related to the pressure gain and leakage in the static characteristics of the hydraulic servo valve. After variable gain control, the static and dynamic characteristics of the servo valve closely resemble those of an ideal servo valve, with the maximum deviation between the flow characteristics and the ideal valve orifice approximately 1 %. Regarding pressure characteristics, the pressure drop before the zero position is below 0.2 MPa. This study establishes the internal relationship between orifice erosion and performance degradation and provides a novel approach to enhancing the erosion resistance of hydraulic servo valves.