That is the diode that we had to install on mowers when doing the DSAM to DSAI conversion to prevent damaging the ignition system when the pto clutch was shutoff. May not be an exact replacement but was designed to do the same thing that the one in your wiring harness was designed to do.Does that have the same type
Unfortunately the crack right down the middle burned any identifying numbers i could make out so i have no idea what it was i could install another and Solder it in no problem . I could not find it on parts lists tho when looking