That's strange... I tried adding a few thousands of files (it took a while, I must say) and it worked correctly. How exactly did you add the files?
Couldn't the problem be related to one particular file (having a very long filename, or contaning strange characters, or something like that)? Does the error message appears every time you try to add those files? If you add only some of them, does anything change?