my truck did this same thing i would hit my breaks and it would stall mine ended up being a ground issue. i replaced everysensor under the hood not fixing the problem. i tore my entire wireing harness out and behind the fuse box in the drivers kickpanel was all corroded and touching multiple wires together grounding stuff out. new harness worked.