Why do my eyes flicker for few seconds when I turn on the lights?

I’ve been to the eye doctor couple times. My eyes are fine except for dry eye. But sometimes when I turn on the light switch my eyes flicker for few seconds. Has this happen to anyone? It’s not the light it’s my eyes. Maybe the LED lights are too bright? Soo annoyed !!