fix potential counter overflow for early event detection
Authored by: pbuchbinder 2023-05-17
Parent: [r2707]
Child: [r2709]