Please follow these steps to change the password on the account for the child:
Sign into the guardian's Nintendo Account that manages the account for the child.
Select "Child Accounts", then select the account for the child who forgot their password.
Next, select "Edit" within the Password section.
Enter a new password for the child's account.