1
If you have forgotten your PIN code, do you have the option to select another sign in option and choose to log into Windows with your Microsoft account password?
If you have also forgotten your Microsoft account password, try using the steps on this link to reset your Microsoft account password.
2
If you still cannot get into Windows, are you able to reset Windows from inside the recovery environment using these steps.
Click the power button on the Login screen.
Press the Shift Key and click Restart
Your PC will boot into the Windows Recovery Environment
Go to Troubleshoot - Advanced Options - Reset this PC
Choose to keep your files and apps, just your files or to keep nothing
Then start the Reset