It would be better to show the exact cmd you used, but derekpock is broadly correct.
Each cmd has a limit of how many params it can accept, you likely used a '*' in a dir with a lot(!) of files.
Try reducing the list by eg only files starting with 'a', then 'b' etc.
Really you need to look at the filenames and find a way of grouping them into shorter lists.