Thank you for posting in Microsoft Q&A forum.
You may check below article, this article provides some steps to help you troubleshoot these errors, which are provided in order of the issues from simple to complex.
https://learn.microsoft.com/en-us/troubleshoot/sql/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection
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.