360 motor loses ignition when warm

This is classic coil failure. But it certainly could be the ECU. I'd try a coil first