Solution
Error 42 is a LabVIEW generic error so it can mean several different things. While generating an executable it can mean that some of the files in the project or the project itself is corrupted.
In order to determine if this is the case you can first do a
mass compile of the project, In case the mass compile generates a LabVIEW crash you can copy all the files that were inside this project into a new one and mass compile this one.
When the mass compile is completed, you should address appropiately the
messages of the mass compile log . After doing this you should be able to generate an executable.