Files need space, in memory and/or on disk. If the needed space isn't available on your system then you are out of luck.
You can expand the needed space by adding a (external) harddisk.
BTW: The file(s) you are trying to create can become huge (several terabytes)! (
wordlist generator !)