My brake light was doing the same thing,
It was just low on fluid.
I figured it was going to be the emergency brake switch sticking.