1) Turn the ignition switch to OFF.
2) Disconnect the stop light switch connector.
3) Measure the resistance of stop light switch terminals.
Is the resistance 0.5 MΩ or less when switch is ON (when pedal is depressed)?
Replace the stop light switch.