I can only speak about my experience with my 2002 Outback, but I had trouble from corrosion because the taillights would fill up with water! I fixed this problem by drilling some drain holes in the back of the sealed unit and that allowed the water and condensation to drain away. The ground was rusty in the socket, so I cleaned it out with some sandpaper, and a steel bristle brush from my plumbing kit,and, so far, no more problems.
If you decide to try this approach, remember that the hole must be big enough to overcome the surface tension of the water, and, by drilling at the backside of the tailight assembly, the "repair" was not visible on the outside of the car.
Another idea is to replace the bulbs with an LED light that might have longer life.