My 4 wheel drive is off but the hazard lights keep going on and off
Lock and close drivers door. Then insert key in drivers door lock and turn to unlock.(don't use key fob remote) on some models this will reset the factory alarm/security features.
Search Toyota questions