you can't, really . . . aside from purchasing higher end hardware, or hardware that uses solid state capacitors. But, the electrolyte capacitors will fail sooner or later. The really cheap ones can fail within a couple of weeks, some might last a couple of months, some longer. The better quality ones will typically outlast the component itself, though.