won't process mqttClient.connect

I followed "Securely Connecting an Arduino MKR WiFi 1010 to AWS IoT Core" tutorial line to line but my MKR WiFi1010 get stuck at 'while (!mqttClient.connect(broker, 8883))' this WHILE loop. Can anyone tell me what I might be doing wrong?

Can anyone help me figure out how to troubleshoot this problem? I am fairly new to Arduino and microprocessor coding.
I am not able to solve this error. It is still stuck at calling the function- while(mqttClient.connect(broker, 8883))

Is the library ArduinoMqttClient.h not compatible with MKRWiFi1010?