Please refer to this document, which describes the solution to the SQL Server timeout error.
Timeout expired messages when connecting to SQL Server
If the answer is helpful, please click Accept Answer
and Up-Vote
for the same. If you have any questions, please feel free to let me know.
Best regards,
Aniya