Right To Repair | In a case like this, can the whole warranty of the vehicle be voided?

No. The guidelines maintain that those provisions of the warranty that relate to unaffected parts remain severable and enforceable. In other words, only the section/s of the warranty that relate to the failure/damage may be voided, the remainder of the warranty must be honoured by the manufacturer.