Please check your project’s directory under ProjectDir\Intermediate\Build\BuildRules for a file called ProjectNameModuleRulesSourceFiles.txt. If that is there, could you please attach that file to a comment?
Also, take a look at the answers on this post and see if any them are able to help you. The error message they were receiving is almost exactly the same as the one I see in your logs, but referring to a different module rule. Compiling Error - Programming & Scripting - Epic Developer Community Forums