Take a deep breath and remind yourself that this isn't your crisis. You didn't cause this, and you will be okay. Be strong for yourself and your kids will see that. Most importantly, detach, it saves.
There are no guarantees only reassurances from all us here that you'll be okay. Read read read everything you can and believe in yourself. You can do this!
Me - Mid 40's W - Mid 40's Married 20 No kids BD - 7/2015 ILYB... Moved out 2 days later Suspect EA