What happens if I forget my password when using the password and SMS code method (PWD/OTP) as the signature approval?

A 2-factor authentication solution is required for the qualified electronic signature as signature approval means. If you forget one factor, the requirement is no longer given.

So you'll need to register again for the qualified electronic signature.