Replacing components does not affect the warranty. The customer is responsible for further compatibility. If the product fails due to a low-quality/incompatible component installed independently, the device will be voided from warranty.