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