This question already has an answer here:
I have been mining for a while now. I restarted my computer this evening and I have been receiving the error " DAG Generation Failure. Reason: Invalid argument" when running the same bat file I always do. I have not made any changes to my system.