Leveraging hardware-control imperfections for error mitigation via generalized quantum subspace