Epic Games, the creator of Fortnite, has announced that it is laying off 1,000 workers amid increasing financial pressure.