Jerzy, the problem is not the speed at which the overvoltage is detected, but whether it is a transient or not. You have to wait and see if the voltage returns to low values (a ringing) or if it remains high. Only in the second case do you have to trigger the triac and open the circuit. Otherwise, you will open the circuit incorrectly ??