State-space encoding driven error resilience in control systems and circuits