may be an easier solution to this.
but if it was me id go out with a multimetre when the break lights are playing up and chase the feed back, start off with the light and work back to see where your stopping getting current, then you will know which component has failed.