I assume this is NOT for QuickBooks online.
The error
An internal QuickBooks error occurred while trying to access the QuickBooks company data file comes from QuickBooks. I think that there might be something wrong with the QuickBooks file and you should probably do a QB Verify and Rebuild from the QB File, Utilities menu or it might be a QB bug.
One question does this always happen or happen after nnn number of records.If you have have done the above QB rebuild and the problem still occurs then please let us know so we can try to persue it with Intuit.
For support issues please see our support page
http://www.AaaTeX.com/Support.htmand/or email
support at AaaTeX dot com
Please do not post any names. The errors contain the names of used in the transactions. I will remove these from your post.