Job moves are stressful, as is the unknown, and I wonder whether it is this that is making you feel as you do?
A 40 minute commute is quite usual - like others above mine used to take an hour at busy times, and I had children too, sometimes at different schools. It can be done, but needs organisation.
What we did was to put the children into wraparound care, which they loved. We were lucky in that there was one at the school they went to. I was on the start-up committee to get it going in the first place, so if your school doesn't have the facility you could do the same - they are well worth having, and for the children it is like a playdate with friends after each school day they use it.
The other thing we did was share the responsibility for picking them up and dropping them off. We are both their parents, so that was a given. This meant that the stress of getting there on time didn't fall to one of us all the time. My working hours weren't fixed, so sometimes I could leave a bit later, and make the journey shorter - missing the rush hour/schoolrun time would shave up to 30 minutes from the journey, and this helped, too.
As others have said, you can use the time to chill a bit, listen to music or an audiobook, or just to 'chill' and have a bit of downtime. I used public transport for my commute, and used to deal with emails on the way in, so that I knew what to expect from my day, and was able to have dealt with some of it before I got in - the journey needn't be lost time.
Everyone's circumstances are different, so I would say to give it a go, and see what works for you. Good luck!