ADC power supplies monitoring - How to reject short overvoltage pulses
Edit: My original answer did not meet the design goal. This is a different approach.

Count each under and over voltage event. When either count exceeds a threshold of say 3, trigger the alarm.

Reduce the over and under counts each time an in-band reading is taken in order to provide basic digital filtering. Ensure you do not under flow the counters.