interior wires cought fire iv stripped the dash 2day this is what i found

this is under the passenger dash

fuse box connections
the engine is now hunting quite badly its got a foxgaurd f1-11t alarm fitted but the wiring is bad question is should i rip the alarm out?

very confussed as 2 wats caused this any ideas would be apreciated