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!!