You have installed the VS IDE and shared components, tools and SDKs on A drive and if you want to fix this location into C drive, you have to uninstall VS and delete the shared component info from the Registry Editor. That is the only way to realize it.
Suggestions
1) first uninstall VS and then delete this value from Registry Editor
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup\SharedInstallationPath
Then, rerun vs_installer program and you can select the right disk to install it.
2) Or, you can run A:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe in your side, this program will uninstall all VS2017 and VS2019 versions and delete the info from Registry Editor at the same time. If you do not care about that, you can use it.
When you finish it, you should reinstall VS.
Update
To change VS IDE installation path, you only have to uninstall VS.
To change the shared component folder, you have to modify the key from the Registry Editor:

==================================================
If you only want to change the shared component folder, you should note that:
Note:
You just modify the value under registry editor. The reason we recommend that you reinstall VS and remove the key together is that simply changing the key will not store the files to a new folder. Reinstalling VS will simply put the Shared component into the new file. That is more formal.
But simply changing the value does not make much difference. In fact, do not uninstall vs so that you will spend more time downloading the files to the new changed folder next time you change or install.
=================================================
If you also want to change the VS IDE path, you have to delete that key and reinstall vs. And change to new path under the VS_installer UI.
The Microsoft' recommended shared folder path is C:\Program Files (x86)\Microsoft Visual Studio\Shared. You can use this if you change it.