short in the system/bad ground maybe. Sounds like it's causing your ECU to reset everytime you turn the ingnition off. Could try to uninstall the amp and see if it continues (not completely uninstall it, just disconnect all wires pertaining to the AMP to elminiate it out of the equation). . .i'm afraid i'm not much of an electrical guy so that's all i have. sry.