Are you sure its the hand brake light? It is more likely to be low fluid level in the Brake master cylinder, The hand brake light switch is clipped to the Brake lever and earth's out when the hand brake is pulled on to complete the circuit, As the switch is spring loaded
It will only come on if the hand brake is pulled or the switch becomes unclipped from the Quadrant, Check fluid level first,