About a month ago I was driving along and I got warning to "Service Brake Apply Sensor" about a minute later I got warnings for traction control, antilock brakes and stability control. Worried about what was going on I pulled over and checked my brake lights, they were not working. I shut the car off and checked the brake light switch above the pedal and couldn't find anything obvious so I started the car back up and all the warnings were gone and the brake lights worked.

Fast forward to this morning on the way home from work and had a replay of all the warnings. I pulled over, shut off the car and restarted it and everything is good.

Can the brake light switch cause all this or is something more sinister going on?