The limit should be 32,767 odd characters, so that you are having
trouble around 1000 means that your problem must be something else.
The error you are getting is "ERROR_INVALID_PARAMETER".
My guess is that you have some conflicting program in your PATH or
your environment is otherwise not great.
Thanks for testing anyway.
FSF == Free Software Foundation (who run the GNU Project which develops GCC).
Relevance == Another testing data point before I submit the patch
would be helpful.