Measure the resistance of the brake switch connectors with the brake pedal depressed.
Terminals
(B65) No. 1 — (B65) No. 4:
Is the resistance 1 MΩ or more?
Replace the brake switch.
Check poor contact of ECM connector.