I have a 02 640e and have had a similar problem with the brake light. I
noticed that both filaments were going and traced it to the switch on the hand brake. it had popped out and for some reason the bulb becomes powered when that happens. While I thought that I had lost the brake lights, in fact they were working overtime. Also the rear light became really hot.