Hello,
What exact error message do you see on the PC now? Since the laptop has not been used for about 10 years, it is possible that the Windows components may have become corrupted. As a result, the system might not accept the correct PIN, and resetting the PIN or password may not work either.
If the data on the laptop is important, consider taking it to a qualified local technician. They can remove the hard drive, and you can connect it to another PC using a USB adapter to help recover your files. After the data has been backed up, the drive can be reinstalled in the old laptop, and you can perform a factory reset or a clean installation of Windows.
This is likely the safest practical way to recover the data from the old hard drive before resetting or reinstalling Windows on your old PC.