Is there a way to change the password to the laptop that I cannot get into
OK, here it is step by step.
1. Using another device, you need to verify you can still login to your MS account with the password you are using. If you can't, you are using the wrong password OR your account has been hacked and someone has changed your password. Go here to do this.
Microsoft account | Sign In or Create Your Account Today – Microsoft
2. If step one failed, You can use the link in Post#3 to attempt account recovery using one of the 2-step verification methods available with MS.
However, changing your MS account password will change your password for all devices where you use a MS account.
Here is that same link shortened.
Reset a forgotten Microsoft account password - Microsoft Support.
Try to use this new password to access your laptop.
3. If you still can not get into the laptop using the new password, it indicates file corruption within your laptop. Recovery options are limited and if you do not have your data backed up or synced to onedrive, it will be lost.
Your 2 system recovery options are:
A.. Using installation media to temporarily enable the administrator account as
@FreeBooter suggested. Once you can log into the administrator account, from there you can create a new
local user account for yourself. (Be sure you give this new account administrator privileges.
B. Clean install windows.
Clean Install Windows 11 Tutorial
If you do not feel you can accomplish this on your own, I suggest you seek a reputable repair shop to help you. Good luck.