Measure the brake switch (A) and stop light switch (B) resistance.
If NG, replace stop and brake switch.