Hi,
I first suggest running an antivirus scan on your computer using Windows Defender and Microsoft Safety Scanner to see if they can detect and remove the virus:
https://learn.microsoft.com/en-us/defender-endpoint/safety-scanner-download?view=o365-worldwide
If you still want to reset your computer and you cannot do it through Settings, try accessing the Windows Recovery Environment (WinRE) and reset your PC from there:
- Press the Windows key + L to go to the sign-in screen.
- Press and hold the Shift key, then click the Power icon and select Restart while continuing to hold the Shift key.
- This will take you to the recovery menu.
- Select Troubleshoot > Reset this PC.
If it still fails, as a last resort, you can perform a clean installation of Windows. Be sure to back up all your important files first, as this process will erase everything on your drive.