Good grief! I'm thinking bad power or ground or a faulty ecm. Code 51 is a prom/memcal error so something is definitely malfunctioning in the ecm.