Is there poor contact of input signal of brake switch?
Repair the poor contact.
Check body integrated unit.