With a WordPress 2.1.2 , an user tried to upload a file.doc and then it appeared the same error message (duplicate entry 2500).
I have explored the last register in “wp_comments” table, ans I’ve seen in the “comment_ID” field a “2499” value.
Then I edited that value to set it a “2501” value.
People can now add comments again without problem.