I was thinking about a type of protection circuit for the gated SR flip-flop above. There might be a situation where you want to disable excessive flip-flopping by pulling the enable low if Q transitions more than say 5 times within a time period of say 1 second.
After that protection feature "trips", an external reset would be required to allow normal operation again.
I have some thoughts about how to implement this, but probably there are better ideas in the hive, requiring fewer components.
My thinking was to have a counter that counts (rising) edges of Q, and that counter gets automatically reset (every 1 second), except if the counter hits a target value.