With these old switches, you can try to cycle it a bunch of times to see if it clears up. If not, you can also remove the gauge cluster to access the hazard switch. Remove the knob from the switch, there is a set screw you loosen then unscrew the knob. The nut holding the switch is called a pin nut. There are pin nut wrenches but most use snap ring pliers or needle nose pliers in the pin hoes to unscrew the nut, taking care to not jump out and scratch the dash. As @charliemeyer007 states, there are spring loaded parts inside the switch so work in a box. Randomly spraying stuff in the switch will likely not be a long term fix. Take it apart, clean it up and lube with dielectric grease to keep the contacts clean. @ToyotaMatt has refurbed a bunch of these so it can be done.