This error can appear for numerous reasons, typically means something in Quickbooks interrupted the sync and caused the sync error. 


You'll find the invoices are in sync error status in the Export tab, try to export and sync the invoices again. You should see that sync is successful this time, if not please close your Quickbooks completely, restart and try syncing once more.