easiest thing to do is check all your negative grounds and connectors, i had an issue where my left headlight would go out, then i move some stuff and it came back on, then my right one went out

so i checked and they were drity and not making contact, just start with grounds, and if those llook good and tight, check all your connectors for dirt and corrosion and make sure they are tight fitting as well, hope this helps and good luck.
also double check after you have dont that for exposed or touching wires that may cause a short, thats another issue i have had in the past.