Digital is not my forte. But, it seems like there would be a mostly digital method. Trigger a monostable at the start of the PWM pulse, with a period equal to 10% of the PWM . Compare the fall of that with the fall of the PWM pulse. If the PWM pulse falls first then alarm. If the monostable falls first, then no alarm. Can't get my head around the digital logic for that. Maybe I need more coffee...or less.
Ken
Ken