Did you set up a samsung account? In that case, just go to https://findmymobile.samsung.com/, sign in using your samsung account and then do the unlock option, it removes all locks and biometrics you have so you can get access and set new ones.
The password is part of the data. If you didn't bother setting up the remote unlock with Samsung, or Google, your screwed. The only way to remove the lock is to factory reset. Even then you will need the password to the Google acct.