Lighting build failed. Swarm failed to kick off

[SOLVED]

I found a way to solve it through code. I wrote this little piece of code here:

	TMap<FGuid, UMaterialInterface*> guids;

	for (TObjectIterator<UMaterialInterface> it; it; ++it)
	{
		UMaterialInterface** result = guids.Find(it->GetLightingGuid());

		if (result == nullptr)
		{
			guids.Add(it->GetLightingGuid(), *it);
		}
		else
		{
			it->SetLightingGuid();
			it->Modify();
		}
	}

I personally have an editor plugin to do this but I think it could work anywhere in code.
This actually regenerates the lighting ID that causes the conflict that you see in the swarm agent log.

After that, just save the modified assets and rebuild.