If a button sticks after water, first stop and make sure the lights work normally. The fault switching itself off after a few minutes doesn't confirm it has been fixed.
Inspection
Check the free travel of the button, damage to the housing, the connector and any traces of moisture. In one warranty case, the switch block was treated without dismantling. That's the result of a specific workshop, not proof that all switch blocks can't be opened and are cured with a spray.
Use a cleaner compatible with the plastic and contacts, with the power off, according to the procedure. Don't pour random oil inside or pull the button with force: you can damage the mechanism and the seal.
After it's working again
Check the hazard lights, both indicator sides and the TCS button, then whether it happens again after normal parking. If the button sticks again, the unit needs checking or replacing, with the water protection restored.
Keep photos and the conditions: rain, washing, temperature. If the problem appeared after fitting an accessory on the handlebar, separately rule out mechanical pressure on the housing and tight wiring.