I have found an interesting article by Raymond on how to reset the password of your Windows computer even if you cannot log in.
Change Or Reset User Password If You Cannot Logon
For the last method, you will need a bootable USB drive to start your computer. See my article Install Windows 10 from a USB drive on how to create the bootable USB media.
Another suggestion using the bootable media is at I cannot login after Windows 10 update, says “password is incorrect”