And a decent PSU with properly set OCP would have never allowed that to happen.I'd be leaning towards a dead short from either pinched wires or contact with the fan pcb and case as that rats-nest of a wiring job looks crammed around the mains
What happened there?
Looks like a fan controller perhaps?