Limit how many events a single user can send

We recently had an error that was rising up to 40k events, but it was only affecting 200 users, so that is 2k events per user. Is there way to put a limit on how many events an individual user can generate?