There may be a time where you need to reinstall the USB drivers to connect to either BetaFlight or Blheli.
Download the CP210x Drivers here.
Download the STM USB VCP Drivers from here. You can alternatively go to the official website and register and download the zip file yourself.
After reinstalling the drivers, reboot your machine and try BetaFlight or BLHeli again.