I received this error due to Surface Book's sometimes not connecting to the GPU since the display and graphics card can be separated. Like other answers, this worked after I:
- restarted my computer to restart wsl
- right clicked my desktop and made sure I saw "NVidia Control Panel" as an option
- started a terminal as an administrator
- ran nvidia-smi in wsl