This is a known bug in the latest version of nvm. The bug is reported and is still open. https://github.com/coreybutler/nvm-windows/issues/1209
It is expected to be fixed in an upcoming release, meanwhile the workaround is to use an older version i.e. https://github.com/coreybutler/nvm-windows/tree/1.1.12