Headlight issue

Hello, I have been having an issue with my headlights. I replaced the headlight switch around 6 months ago in a 1971 Dodge Dart. Recently, my headlights have been randomly turning off and on in like flickering but completely turning off and on. It happens at random intervals and usually turning off and on the headlight switch will fix it temporarily, any ideas?
im having same issue with a 80 model D150!