I'm really sorry for your kids, OP.
Mine are the same ages and we are 1.5y into divorce.
The best you can do is dig into being an awesome loving mom, get the kids (and yourself) into therapy, and make sure that everyone is financially covered in the divorce.
IMO he is having an affair despite what you think.