Just got this again. It happened at the end of an attacking turn going into organization phase.
I am having a hard time recreating this error. The index says 8, but there are only 4 countries. It could probably be a database error where I put the country number as 8.