Had similar issue. I’ve managed to solve this by altering my Path system environment variable. Im my case the problem was with an entry surrounded with double quotes. After removing that line - everything went smooth. So I think you should try to clear your Path variable and leave only some basic file paths there (like Windows, VS, etc.
Hope this helps