weird cutting out problem

I wonder about that also if it should get the straight 12 volts or not cudavert but i ran with it hooked up to the ballast for a long time and had no problems

See if your electronic box blue wire is getting full battery voltage. See how the blue wire is getting its POWER ON feed BEFORE the ballast resistor?