lowering_produced_invalid_head
Lowering output’s form head is not in the manifest’s :produces whitelist.
Run sjon explain lowering_produced_invalid_head to read this at a terminal, browse every code, or work through diagnostics-driven repair if you want the habit rather than the answer.