Output a pulsing signal when input is high/low
Use an RS flip-flop instead.


To prevent the flip-flop from unintentionally being reset while the error is still present use an and-gate with one inverted input, as shown above.