Headlights go out when I switch to brights

Your vehicle doesn’t have a relay that controls the high/low beams. This is controlled thru the dimmer switch.

The dimmer switch requires replacement.

Tester