1997 s-10 blazer headlights flickering and you can here a relay in glove box clicking?

just had same problem on 96 replaced head light switch in dash not had problem since wiggled switch first flickering matche wiggle