Lightning Build Failed. Swarm Failed to Kick off

For me the problem was that I had duplicates of some of files (materials, meshes, textures) because I migrated them improperly from other projects. The solution was to delete the duplicates and point to the originals when prompted for replacement in references while deleting the duplicates.