The latest version of raspberry pi 32 does not work with the url curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
First download only the file: wget https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh
(you can also use a browser and upload it again to your Pi)
Then chmod 755 install.sh
And then execute with the correct user (e.g. root?) ./install.sh
To your error:
That is not a good error. Perhaps a problem with your Pi installation.
Maybe you must install a new system.
dpkg -l |grep curl ii curl 7.64.0-4+deb10u2 armhf command line tool for transferring data with URL syntax ii libcurl3-gnutls:armhf 7.64.0-4+deb10u2 armhf easy-to-use client-side URL transfer library (GnuTLS flavour) ii libcurl4:armhf 7.64.0-4+deb10u2 armhf easy-to-use client-side URL transfer library (OpenSSL flavour) ii php7.3-curl