I'm not sure if this will help but I was having a similar issue trying to export iif from QuickBooks Online Payroll to QuickBooks desktop. I opened the file with errors using Excel and searched for the word Error. I was able to identify what the errors were with the data and fix them in QBO Payroll and recreate the iif file and successfully import the file.