I had this problem with high and low beams back in 2019 and it turned out to be a bad lug on the headlamp switch. Replaced the switch, recrimped and repaired the harness connector because one terminal had melted out and it was working fine again.
I'm driving early Saturday morning with the high-beams on and it drops out and starts flickering. Yeah that's a fun thing to happen when driving through the mountains! Dash and marker lights seem to stay on but the high-beams, low-beams and the symbol on the dash flicker in and out. Click back into low-beams and the headlights instantly come back. Using OEM headlamps and no relays.
How are the headlights wired that allows all four lamps and the dash indicator to fail only when switched to high-beam mode and work fine if kept on the low-beams?