Welcome to the SS forums, you will find allot of people here to help.
The first thing I would do is unplug the molded plug connected to the brake light switch, there are two circuits there, one is two individual wires and the other is two wires through a molded plug.
If that stops the issue then ether there is a wiring error or you could have a defective TCM.
What apparently is happening is the torque converter is trying to lock when you step on the brake, this can be confirmed by starting the truck in neutral and then step on the brake, if the torque converter tries to lock it will not pull the engine down.