OK, @MSG76 -firstly, my 'bad' - I thought the PCB resistor was 510Ω not 51Ω !
So to be clear, is your 'lights going out on applying the brakes' issue down to the controller requiring 3-wire brake sensors, or a controller fault?
And not being clued up on brake sensors, why is it not workable...