I cannot remember password on my tablet Samsung Galaxy S4. It just keeps giving me options to enter, I've tried 30 times I should have never changed it in the middle of doing something.
If the S4 is connected to the Internet and has your Google Id logged in, then you can change your password using Android Device Manager.
You can use recovery mode option. You can erase cache partition.
Find my mobile is on then you can erase mobile using google account. You can also use Samsung account and erase mobile.
You can connect mobile to computer and restore mobile. https://mobile-cellphones.blogspot.com/2021/02/howto-unlock-pattern-lock-and-password.html