I am having the exact same issue. I can use GSMClient on port 80 for HTTP but HTTPS doesnt work for some reason(made a post about it here https://forum.arduino.cc/t/arduino-mkr-1400-https-certificate-issue/975268 )
You get permanent redirect cause Influxdb Cloud redirects everything to their HTTPS.