There were things that got the better of you, so you could fight and then get into adultery. You need to get rid of those ways that could get you to be so angry and do what you did; feed on what the Bible says about those things. And there might be selfish ego things you like, but it is worth not holding on to them . . . so you can get more into loving with her.
Instead of worrying about what you did, get with God, instead, so you are kind and caring . . . not the same person anymore. And be her example of this, plus enjoy however she helps you to become real in loving.
There are various scriptures about how to relate in a close relationship.
And perhaps there were things you were ready to fight for > may be these need to be sacrificed.
"with all lowliness and gentleness, with longsuffering, bearing with one another in love," (Ephesians 4:2)
but if confess to my wife she will most certainly divorce me and I have kids.
Well, Jesus wants us to forgive. So, in case you really feel she is not capable of honoring Jesus, you might want to pray about the fact that you see her like this. It probably is not true . . . if she is a maturing Christian.
But in case you are correct, you need to love her and pray for her and show her how to be forgiving and kind and not arguing. Because if she really is so ready with unforgiveness, she can get into various kinds of trouble > unforgiveness can maintain any of us so we can get into various sorts of trouble, especially spiritually and emotionally; because the weakness of unforgiveness works overtime to make us weak for other evil things, too.
Jesus has His reason for expecting us to forgive. So, if He is first, for us, forgiveness is first.
By the way > any time we sin, we are cheating on our Groom Jesus; and does He dump us, divorce us??
So, be strong with compassion ready, in case she really does have a forgiveness problem. I do not mean to confess to her, but if you really are sure she is not right with God so she is ready to forgive, this is important, and you need to care for her and minister to her, versus hiding in guilt and fear. And I would say your children need to not be your only or main reason for not wanting a divorce; but you need to love her as a major reason . . . right?
"Husbands, love your wives and do not be bitter toward them." (Colossians 3:19)
Loving your children in God's way includes how you love her, by the way, as your children's example. Or else, they can learn your ways and later those ways can have them doing evil like you have done!! Even if you don't do an obvious adultery thing, being faithful includes how we love the way God has us loving.
Like I say, I do not mean you should confess to her, but I would be careful about assuming you know her about something. Possibly, still you have much more getting to know her to do

. . . instead of assuming she is predictable. If God is growing her in Jesus, she is not going to stay the same; she is not going to be predictable. And it is very enjoyable to keep discovering each other, as you grow together.
"the wrath of man does not produce the righteousness of God" > in James 1:20.
You were able to connect in marriage with each other; so I would think you both could have issues. And you can help each other. This is for God our Father, so we can become like Jesus and love like Jesus, and this is for truly loving each other and our children. Love
"hopes all things" (in 1 Corinthians 13:7)