I doubt it. Fortnite alone probably covers all of those free games and then some, it’s an insane cash cow. Add to that Unreal Engine revenue and they’re not hurting at all for money.
Layoffs just means they probably finished the bulk of UE5 dev and are seeing softening revenues with the COVID spike being over, so they don’t have as much demand to get that and related projects done sooner. Amazon and other big tech firms have done similar layoffs, and it’s not because they’re losing money, but because they’re seeing an end to the crazy growth in the gaming industry due to COVID-19 demand changes.
So no, I really don’t think Epic is hurting for money, they’re just cutting costs to improve margins now that revenue is likely falling.