I accidentally hooked up negotiate cable to battery first causing the wire running to the alternator to smoke. I quickly unhooked it and hooked it up positive side first. But now my car won’t stay running. It keeps stalling out on me as I’m driving. But it does slow first the lights will go then I have no power to nothing then the car dies. Then I jump it again with a jumper box and as long as that’s hooked up I have power to everything except the radio because the fuse keeps popping on the wire running to the battery
Connecting neg first then pos will not damage the system - it is accepted practice so that the final connection from a second battery can be made to the engine or chassis so if there is a small spark it is away from the battery that may be producing hydrogen. Yes, batteries do explode.
If you made the error of getting the leads on the wrong terminals then you may have damaged some electrical components which ones you have to chase down.
If it keeps stalling - have you properly recharged the original battery as some cars are really unhappy with a low battery voltage which causes lots of problems - spurious warnings lights for faults that don’t exist etc
So, charge the battery thoroughly and see if the behavior improves...