Recently, we are doing overvoltage protection of voltage-controlled current sources, hoping to cut off the power supply when the load is overvoltage. However, the current solution is implemented by using a comparator and an analog switch. When no overvoltage occurs, the function is normal, but when an overvoltage occurs, the power supply is repeatedly turned on and off because the overvoltage detection loop is not cut off, causing the load current to oscillate. I hope to get some suggestions. ,thanks.