Hi @Vinith,
Thank you for reaching out and welcome to Microsoft Q&A.
You've tried to increase the connection timeout, but it was still this exception. I found this article and it was found that incorrect caching of statistics and/or query plans for the database could also cause this issue. Could you please try this query:
exec sp_updatestats
Updating statistics ensures that queries are compiled with the latest statistics.
If the problem is not solved after the execution, please try this:
dbcc freeproccache
Deletes all elements in the plan cache, removes a specific plan from the plan cache by specifying a plan handle or SQL handle, or deletes all cache entries associated with a specified resource pool.
It can be determined that the issue appears because the execution plan of the in-memory cache is wrong or not optimal. This is the official document, hope this can help you well.
Feel free to share your issue here if you have any confusions.
Best regards,
Lucy Chen
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
https://docs.microsoft.com/en-us/answers/support/email-notifications