I had this error as well, in my case I think it was being caused by a latent instance of lstools.exe failing to close. I found it running in task manager, closed it, and it seemed to work.
I believe the program is throwing an exception because you're trying to store a huge file in the memory of the program.