1) Disconnect the connector (R4) from parking brake switch.
2) Release the parking brake.
3) Measure the resistance between parking brake switch terminal and chassis ground.
Is the resistance more than 1 MΩ?
Replace the parking brake switch.