I forgot to mention another way to get your ride, but not need an extreme e bike. Bike rack on the car, park it 15 miles from work, and ride in from there. Seriously,,,, then your ride is perfect length, maybe even for just pedal, and your e bike can be just about anything that runs reliably.
Re reliability, I'm actually amazed you had problems with a lyens. Controllers can be very reliable now, or not, but even the best can have a part get hot and toast off, especially when running hard up mountains. But a very good quality kit from somebody who has great customer support should get you commuting reliably. Its tires that will give you the most grief, if you ride real far daily.
IMO, 40 mph continuous on a big heavy cargo bike is a bit of a dream. Just like MR said. But like I said, and he said, carrying 40 mph for 40 miles worth of battery is a LOT of battery to carry, as you see on voltrons rig.
So to clarify and repeat, you can build a cargo bike that can do 40 mph, at least at the start of the ride. And later, after half the battery is gone, it will still have 35 mph when you need it, if the route has a bad spot where you have to get into the traffic lane for a mile or so.
A yuba mundo, or a surly big dummy would be a good choice, but alas, the price. I really suggest you get a wire feed welder for a couple hundred bucks at harbor freight, and teach yourself to weld. Its pretty easy with that type of welder. It must be, I am the worst welder on earth, and I built this in a weekend or two.
I was building for low speed, and extreme range, but this bike could have been as fast as Voltrons with the right motor. The main features were lots of tray space in the frame for batteries, and additional space in the panniers for even more.
This was not my first attempt, but a good project for a starting welder is the bolt on longtail attachment. Get a decent bike, and a junk mtb with a steel swing arm, and bingo, you got a longtail cargo bike. See links under any of my posts, for the threads where I built stuff.