Check that all pins are fully inserted in the socket.
If Ok, replace PROM, clear memory, and recheck.
If Code 51 reappears, replace ECM.