You dont see a cooked hobby wing often, what a mess, how are the batteries, if the esc popped it might have started a short on the batteries, check the cell voltages
Most of the time these ESC's will cut out due to high load (amps) (not heat).
The max 6 only uses 10 awg wire and should be 8awg for 8s imo, the current melted the connector from the pcb. But the fire probably came from the capacitors blowing out, tho the tops look okish.