Most command line programs are open source so you can do something about that if it really makes sense.
If you just want to work around this on some architectures you can simply raise the stack limit which defaults to 8MiB.
If you want to do this in a portable way, learn to use `xargs` or `find`.
xargs and find are a hack here, because it will start the target program multiple times. They only work if CMD FILE1 FILE2 has the same meaning as CMD FILE1; CMD FILE2.
The fix with the stack limit is also a hack. What other system requires you to specify a hard limit, these days?