I'd check the lamp & bulkhead connections for contact or corrosion, check for good grounds, and check the alternator & regulator for performance.
Also check for good connections at battery cables & starter relay + while you're there.
I assume this problem just started occurring ?