There are a number of ways one can avoid the horror stories of failed equipment.
Step one: Avoid the so called "entry Level" junk like the plague. They are built and equipped with the cheapest materials and systems possible. A quality coach will be worth every penny in the long run.
Step two: Use every system and piece of gear on board on a regular basis. Nothing contributes to failed systems like the lack of use. Run the generator every month, under a significant load for at least an hour. Run your AC, furnace, water pump, frig, microwave etc., often, simulating the use they would get out on the road.
Step three: Proper maintenance is essential. Along with the normal fluid and systems checks for any engine drive/run them often. Check your tires, batteries, lights, fuses etc., on a regular basis. Take the rig out and drive it a hundred miles on a regular basis especially if you aren't using often it for travel/camping. That old saying "Use it or lose it" should be your mantra.
Step four: Proper storage goes hand in glove with the above maintenance. Covered storage is plan A but if not available make copious use of the proper waxes and cleaners. Tire and/or even full covers can add years to the life of any RV.
Bottom line, "Preventing RV maintenance" is about as foolish as you can get. They all require regular routine maintenance, when properly done you will save thousands and have a much more reliable coach. If properly maintaining an RV is not your thing (and you can certainly just write checks to get it done), consider renting or some other alternate means of travel.
As always.... Opinions and YMMV.
:C