terminology: its the switch contacts that are flaky. The know is the handle and is decorative.
The fix is likely electronics parts cleaner followed by a lubricant. but we do not know, you need to take it apart and also look for mechanical damage.
Its why i only design now with fully sealed relays under computer control.