Fine-grained bit-flip protection for relaxation methods