His generals were absolutely convinced that fighting a war on two fronts simultaneously was a disaster in the making, it was written in Lesson One in the military textbooks that the Prussian elite studied in the military academies from the time of Clausewitz.
Hitler and his allies made several serious mistakes, but it's really hard to say exactly which one brought about their defeat.