Error with R4 WIFI in IOT cloud

Hi everyone,
Firstly sorry for my potential English errors.
I wrote a very simple code to test the conectivity beetwen R4 and IOT. The conection beetwen the network and the R4 has been done and I can use a potentiometre to control the matrix led include in the R4 like the based IDE so I think the code has been corectly upload to the R4. But then I tried to controled the matrix whith the dashboard when I open the monitor there is an error : "ArduinoIoTCloudTCP::handle_SyncTime could not get valid time. Retrying now." and due to this error I cannot controled the R4 by IOT that's why I refer to you. 1. the R4 connect to the WIFI directly after the uploading is finsih but the thing that is a bit strange is that the R4 talk with IOT like in another code I ask the R4 to share the value of a potentiometer and print it in the terminal and that work but only when the cable is connected to the pc where the IOT is running, when I use an external alimentation or i plugged it on another computer but shouldn't the wifi replace the cable connection? I knew in the arduino familiar with the IOT world so sorry for my potential dumb questions...
I saw some people in the same case in the arduino forum but their idea to correct the bug does't work for me that's why I call for your help thank you.

#include "thingProperties.h"


void setup() {
  Serial.begin(9600);
  delay(1500); 
  
  initProperties();
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();

  pinMode(4,OUTPUT);
}
void loop() {
  ArduinoCloud.update();
}

void onLedChange()  {
  if(led == 1)
    digitalWrite(4, HIGH);
  if(led == 0)
    digitalWrite(4, LOW);
}


// Code generated by Arduino IoT Cloud, DO NOT EDIT.

#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>

const char SSID[]     = SECRET_SSID;    // Network SSID (name)
const char PASS[]     = SECRET_OPTIONAL_PASS;    // Network password (use for WPA, or use as key for WEP)

void onLedChange();

bool led;

void initProperties(){

  ArduinoCloud.addProperty(led, READWRITE, ON_CHANGE, onLedChange);


  ArduinoCloud.updateCertificate(CERT_AUTHORITY, CERT_SERIAL, CERT_NOT_BEFORE, CERT_NOT_AFTER, CERT_SIGNATURE_RS);

}

WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);

Hi, can you please post the whole set of logs that you can read from your boards?
Thanks