The above issue in the question is happening on and off while accessing the external table. In my case we have created external tables using model.json file which has the schema of different tables.
For some of the tables it is throwing the above error when accessed for the first time .
After that I have tried accessing another table which is not throwing the above error. After that I have again tried to access the first table which has thrown the error . Surprisingly now i am able to access the table without any error.
If i schedule the pipeline which continuously query CSV files if the above problem appears then it will be an issue for data loading.
Looking for a solution for the question. Thanks in advance.