My V40 used to click when the brake was pushed down at low speed e.g. parking.
It did it for years. Turned out to be part of the brake pads had seized to the caliper.
It was never noticed until I changed the front pads and rotors.
I'd been worrying it was gearbox related until a change of pads sorted it.