as HipMF stated, I had this happen once in a blue moon, but never could even look into it because it would be gone before I could.
for the brake light circuit code, try re-seating the taillight brake bulbs. historically, that always worked for me. I think they shake loose and the slight short causes the code.