If the following command doesn't reset the admin password,
grafana-cli admin reset-admin-password "admin password"
Please use the command below,
grafana-cli admin reset-admin-password --password-from-stdin
This command will as the new password in prompt, enter the new password and login into grafana.