It's not so much that these problems can't be solved, they're just largely intractable under liberalism. Like sure, Spain is doing fine with immigration, but that doesn't solve the rest of the problems. The reality is that most of Europe is tilting towards the right and nationalism. The green deal could've been an answer, but it's not profitable for the ruling class, and so it didn't happen. And this is an excellent explanation of why the industry is being eroded systematically under financial capitalism. It's just not a good investment for private capital compared to stuff like software or the service industry. I'd also argue that EU politicians are extremely effective at serving the interests of the ruling class. They managed to keep a proxy war nobody wanted going for full four years now.
You keep talking Europe as being some homogeneous body where everybody has a common interest. But that's not the case because Europe is a class society, and the interests of the capital owning class do not align with those of the working majority. On top of that, regional capital has divergent interests as well, and hence why the whole thing is a mess. Rich people are gutting Europe to make a buck.