Unknown Cook Failure: CookCommand.Automation.cs:249 Wrapped by AutomationException: Cook failed.

Looking closely at the output, I found a line with red text.

I searched for MF_Idle_MHUQ5 and deleted it, and the problem was fixed.

The error could be fixed by correcting the line with red text.