Actually Allies in Europe were intending to fix exactly what went wrong the previous time: Belgium. As soon as Belgium and Netherlands were attacked, British and French armies were sent in. They had learned from past mistakes and did not plan to fight another 4 year stalemate.
Where things went horribly, horribly wrong was that nobody, in a way not even Germans themselves, knew how much new mobile units with tanks and fully mechanized or motorized infantry would change warfare together with air power. Nobody expected that armored push through Luxembourg and towards Sedan. Once Germans reached Sedan, the Allies still thought the main front would be in Belgium despite basically the entirety of Luftwaffe supporting the armored spearhead. They also thought it'd take Germans closer to a week to get their artillery to support the river crossing to get across Meuse, so they'd have plenty of time to move their reserves. Wrong: it took Germans 8 hours with air support. The Allies were in their reactions days behind.
After that it was a turn to the right and a run to the sea the French couldn't hope win. Germans were ahead in strategic OODA, had the initiative all the time, their forces were organized better(no mixed tanks and conventional foot infantry, ground-air coordination) and the Allies lacked large enough strategic and operational level reserves. The puny single tank unit(regiment size IIRC) that they had to be thrown against the Germans led by then major colonel de Gaulle himself was taken out in an afternoon by AT guns and Ju 87s.