You can't fix this in the tool you are trying to invoke because the tool never runs. The error E2BIG is returned from the syscall `execve` because it fails to run the program.
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`.