Car died during driving

Might be as simple as a battery clamp........What all do you "lose" headlights? That's a big clue if so.

You need a service manual. MUST. Go to MyMopar and download one free

There are also wiring diagrams there, which are aftermarket, but somewhat easier to follow at times.

Read the MAD article which has a great simplifed diagram of primary power. Tell us what all you lose, and what all you have, when the problem shows up

MAD:

Catalog

Notice on that page the simplified diagram of main power:
View attachment 1715077599

Your main points of failure for complete or nearly complete loss of power are:

Main battery cables and clamps and the ring ends and terminations

The fuse link, and the wire it feeds into the bulkhead connector (RED)

The ammeter and the RED and BLACK wires to it

The WELDED SPLICE rarely fails but it can and has!!

Ok. I have done the mad article bypass about 6-8 months ago. That has been working good. Charging and everything. When it shut off the first time I was coasting to the red light. Then BAM total darkness. Did not have anything operating electrically from the headlights to the starter. Nothing worked. Only the efi would turn on (on a separate switch).... Wriggled the positive and negative battery cable. Battery cable to starter relay. Fusible link and bulkhead connector. Still wouldn't roll over...After a few seconds and more wriggling of wires an putting it in neutral then firmly into park and several twist of the key it started up.