You should start by identifying the cause. You can follow our guide on what to do if taskbar icons are flickering.