Hey there,
If you are on Windows 64 bits, do the following to fix the issue:
Go to your UnrealEngine folder then Engine>Build>BatchFiles
then open cmd there and type the following command:
Build.bat UnrealLightmass Win64 Development -verbose
and wait then try again, it worked for me