The most likely cause of this is that your password has expired, or your account has been locked out.
Use the Microsoft 365 self-service password reset tool to reset your password.
Once changed, try to log into your Library Account. If your new password doesn’t work then you will need to contact the IT Services desk