Hi there,
If your user is linked with a Microsoft account, you can reset the password
https://support.microsoft.com/en-us/windows/change-or-reset-your-windows-password-8271d17c-9f9e-443f-835a-8318c8f68b9c
If it is a Local account you must try the clean install method or try out these steps
Press the Shift key while you select the Power button > Restart in the lower-right corner of the screen.
On the Choose an option screen, select Troubleshoot > Reset this PC.
Select Remove everything.
If the reply is helpful, please Upvote and Accept it as an answer