I tried to compile the sketch you shared, and it compiles perfectly without errors. However, when I add the SSLClient.h library to my project, I encounter compilation errors that I can't decipher. Essentially, the combination of these libraries generates a compilation error.
#include <SSLClient.h>
#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>