1) After removing trailer from launching ramp, wash down the inside and outside of your trailer lights to prevent corrosion of the socket.
2) Silicone spray the mounting areas around the bulb to prevent corrosion.
3) Buy trailer lights with extended life bulbs. Most Peterson lights come with 15,000 hour bulbs, which can be identified by their distinctive green base.