Format error state recovery properly