As Kermit says, they are separate issues. You have confirmed the replacement accumulator has fixed the pump running every brake press.
Brake lights on the back of the car are most likely the pedal switch - reset the adjustment, or replace it.
If you plan to keep the P38, then you will need...