@Daniel ,
Thanks for reaching out to Q&A.
There are many reasons that could cause "Communication link failure (0)" issue. This is a very generic error message. In order to troubleshoot this issue, this needs to be isolated first. Either there is a problem at the Functions platform side or a problem at the SQLserver/ODBC driver.
Functions:
Run the "Function app down or reporting errors" detector available in the Diagnose and solve problems blade in Functions portal during the time the issue was seen. This would tell you if there is any problem at the Functions side.
SQL:
Check the logs (application/server/event) at the SQL server side to see if there were any updates/errors/down time that coincides with the errors.
If the issue is seen intermittently and occurs very rarely, this could be a transient issue as well. Having a retry mechanism would help. I have seen issues like this in the past where there were some issues at the sql side and the function app was failing with similar message, once the sql issue was resolved and the function app was restarted, the error was not seen anymore.
I hope this helps! Feel free to reach out to me if you have any queries or concerns.