Measure the brake switch (1) and stop light switch (2) resistance.
If NG, replace the stop and brake switch.