I don't mean to sound harsh, but why are you repeatedly running the macro, particularly the overwrite version? It is a very inefficient way to maintain your database. The CountryStateCounty macro (and it's overwrite version) were written to allow you to "catch up" your data. To maintain your database after running the macro once, it is much more efficient to have GSAK update the data when you load a GPX file (click here for information on how to do that).
Re: the error, I'm not sure what is causing it (my guess is that you are using abbreviations for your State field, and GSAK is trying to apply the abbreviations before the macro has released the caches table, but Clyde would have to say for sure). How many caches are you running the macro against?
Re: the error, I'm not sure what is causing it (my guess is that you are using abbreviations for your State field, and GSAK is trying to apply the abbreviations before the macro has released the caches table, but Clyde would have to say for sure). How many caches are you running the macro against?