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.
Sorry. Should’ve said it’s a one wire internally regulated alternator that goes straight to the starter relay.