Intermittent spark

Unplug the battery wire to the alternator. That wire is connected to all blue wires under the hood including the ballast. You could have a bad alternator and it is shorting the system. You said that is the last thing you installed.