Public Folder migration to Office 365 can be full of hassles at times.
Even I got several errors while performing this migration.
Do those mailboxes keep syncing until they timeout?
You can try to delete migration batch. To be more precise, delete the failing public folder mailboxes and then restart the migration process.
I guess you have created more than enough mailboxes, based on PF size?
Please revert back.