I ran into this problem trying to install to the root folder of a drive. Switching my install folder to a different location in the Unity Hub settings fixed it for me.
However, I also had to move all my existing installs to the new folder and restart Unity Hub so it could find them again.