Usually your electronics going haywire is the alternator. I would check your charging system out. With the vehicle off the battery should be reading 12.6 volts. With the vehicle running the battery should be reading 14.6 volts as it would be receiving a charge from the alternator. You can even turn some things on like the lights or ac to put a load on it. If while the vehicle is running the voltage drops below 13 volts the battery is being drained and would cause the vehicle to die. That would be the first thing I check out