Check the stop light & brake switch.
Is the stop light & brake switch OK?
Replace the ECM.
Replace the stop light & brake switch.