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