The only thing that turns your ebrake light on and off is a small push button switch. Take out the center console and pull up on the ebrake. See that white button switch? Thats the switch. Its deactivated when you lower the ebrake handle all the way down and activated when you pull up on it.
I don't know why it would be going on and off like that.