Text this: Study of Switching Overvoltage Protection Measures for Capacitor Compensation Device