I don't know how many times I've tried to flag two "Thank you" comments in a row only to get the error message above. Then I have to go through the whole process all over again of clicking the flag button, choosing the "no longer needed" option, and clicking the "Flag Comment" button.
If it were 3 seconds I probably wouldn't run into the error. But apparently it is something about giving the system time to do its work.
So if the rate limit has to stay at 5 seconds, it would be nice to have a visual cue to know when the time is up and I won't be penalized (ie, made to go through the whole process again) for clicking the "Flag Comment" button.
It seems like a good UX decision would be to make it impossible to do something you are not allowed to do. The button is already disabled until you choose a flag reason. Just keep it that way until the 5 seconds are up.