When you say "void the warranty", that implies that the mfgr is able to refuse ALL warranty claims, and that the product is no longer covered by any warranty. This is flatly illegal.
What mfgrs *can* do is refuse to honor the warranty for specific claims when they can prove that the customer caused the problem in the first place, such as with a shoddy repair or faulty part.
So if you change your own oil and strip out the drain bolt and the oil all leaks out and your engine seizes, the mfgr does not have to repair your engine. But if you change your own wiper blades with Anco blades from Walmart, they are not allowed to refuse to fix your car when the engine fails, because the wiper blades have nothing to do with the engine. If you change your own oil and the brakes fail, again they cannot refuse to fix it. If you change your own brake pads and the brakes fail, they still cannot refuse to fix it unless they can reasonably prove that you did something wrong or used a bad part. General maintenance/consumable things like oil/filters, brake pads have lots of aftermarket support so it's not easy to prove that the Fram/Purolator/Bosch filter caused your engine problem.