I suggest unplugging EVERY electrical connection in the engine bay you can find, whether engine related or not, and spraying it out with a good electronics cleaner, visually inspecting the terminals making sure they haven’t retracted into the plastic holder, and then plugging it back together.
There’s a critical 10-pin connector for the front lighting system located in front of the air cleaner and behind the left headlight assembly. Don’t miss that one. Also be sure that the connectors to the ballast resistor mounted near the air cleaner housing are clean and tight.
ALL of the relays should be removed, the terminals wire-brushed until shiny, and the receptacles sprayed out with contact cleaner. Then plug them back in. I do this on every Renix Jeep I purchase or work on for someone else.