Looking into bright light and getting triggered for sneezing is called the photic sneeze reflex.
I’m one of the 18% (?) of the population with it, and it is hereditary.
I actually kind of like it, as if I need to sneeze all I need to do is look at a bright light.