Hey,
this issue tends to occur when environment variables exceed maximum allowed lengths. Check how long PATH is, if (after expanding) it’s over 2048 try to reduce that and see if it helps. If it doesn’t, check if any other variables have outstanding lengths. From what I checked, Windows sometimes required to log off and log in again to properly envvar propagate change visibility.
Hope that helps,
Cheers, Mikolaj