Headlights go out when I switch to brights

Usually it’s the dimmer switch on the old cars. You can remove the connector and look at the terminals; cleaning them may help. Most times we just changed them.