From the screenshot, it appears that the issue is occurring at the target endpoint while executing the query. However, we are unable to determine which endpoint is being used.
Could you please verify the target endpoint and add the internal parameter executeTimeout (default value: 60) ,cdcTimeout (default 600); (some endpoints do not have this value) and increase it by 10 x
Please refer to the article below for instructions on configuring this parameter.