I have never encountered that error and cannot begin to guess how this could be happening other than the slim possibility that there is something wrong with the keyboard such that when you press the delete key it essentially bounces, executing the command twice.
If you go to the trash folder of your mail you would be able to recover the messages it deleted wrongly.