I check the break light all are working.. It happen all the time when I step on the break pedal
When pressing the brake pedal a light appears on the dash board with an X on it on 2007 Hyundai Elantra
See owners manual.
1 more answer
poss 3rd brk light has 2 bulbs and one is bad.remove and ck