Shasta County had to return over $6.2 million in state school funding after a clerical error led to an overpayment.