State's finances had $3.5 billion accounting error, comptroller general says