I found a workaround which works providing you don’t have too many products – I increases the rows per call to 50 which means all by products were inserted before the 5 calls were reached.
I’m using a xampp development environment running on windows 8.1 in case it helps as it might be something to do with windows file paths.