If your SQL databases are very big, the backup could take a long time.
During this time, the tables are locked, so the server can't run any queries and its MySQL connection times-out.
Do you have log tables in your SQL database (atcommandlog, loginlog, picklog, etc.) ?
If you move those to a separate database, that would make backups smaller and faster.