NCP 1.51.0: HPB down - push server can't connect to the Nextcloud server

I don’t know how you system was running before but likely there is some issue with a config. it’s unlikely you have valid certificate for localhost so https://localhost/.. must be wrong address - it should be either http://localhost or https://cloud.mydomain.tld/..

Did you check this thread already?

Setting up Files (High Performance Backend)