You will find several request covering this point, if you use the search function of this forum (upper right corner):
https://help.nextcloud.com/search?q=change%20admin%20password
Here you find e.g. the recommendation to better change the recovery email address than playing around with the admin password: