I was able to fix the database using regex, the issue is that timestamps weren't properly encoded, this was fixed in https://github.com/humanmade/hm-backup/pull/34 so this backup must have been from an old version of the plugin.
I verified that creating a backup of that database with the latest version of the plugin created a valid sql file.