4-way hazard flasher? Sometimes the switch won't turn on the flashers without being wiggled. I doubt if its anything major.
The flasher switch itself in the switch pad might have an internal fault. You can trace it to its plug, disconnect it there then lube it with contact cleaner or disassemble it for investigation. Or just blast it with cleaner where it is.