If you get this error then follow the steps below
step 1 - windows command prompt(CMD) run as administrator
step 2 - Type wsl --update in your terminal and run it
wsl --update