The only problem I've had comparable was that my fusebox by the clutch was hanging down and my foot kicked it when shifting gears, the whole car lost all power and i had to tap it again to get all electronics to restart. You could check that, otherwise you seem to of pinpointed the problem, the ECU....
Does the engine try to turn over until he taps it? Need more information.