pulled over for swearving and no lights
You need to speak with a good criminal defense lawyer in your community ASAP.
You have actually not asked a question here, but I will lay out some general legal principles you might want to go over with whomever you consult.
 DWI with a child in the car is a state jail (bottom level) felony if the child was under 15 years old.
 No matter how old the DWI convictions are, if a person has at least 2 prior DWI conviction, they can be charged with felony DWI under Texas law.
My last thought is that you need to get with a good DWI criminal lawyer ASAP. That lawyer can give you advice specific to your situation and can do a full evaluation of the case to see if you may have a defense. That lawyer may...no guarantees...but may be able to approach the prosecutor to try to limit your exposure through negotiation.