"Are there any ideas or solutions to deal with this problems?"
Yes: Don't worry about it. If you think on it you will see this is a problem specific to people that use proprietary software, that do their computing on other people's computers (what some like the call "the cloud"), or that randomly run third party programs that random people send into their browser. None of that, of course, is good from a "security" perspective right? Especially that last one. But some insist on doing it, and build up ever bigger ever stronger walls to defend against attacks, but ever bigger vulnerabilities are being detected too.
But they're doing it to themselves: If people don't do their computing in other people's computers (aka "cloud computing") they don't have to worry that someone else might compromise the machine that powers their "shared cloud" by using meltdown or spectre. Similarly, if they don't run proprietary programs that they can never audit or trust what they're doing to be free of meltdown or spectre problems, and don't execute all programs that they're randomly given inside their web browser (since JIT engines used for JavaScript were found vulnerable to Spectre), what is the *real* risk at that point once those things are excluded?
I am reminded of an episode of Star Trek: The Next Generation called Hero Worship where they were also creating their own problem: https://www.youtube.com/watch?v=RHoXUP804vg
The solution was simple: Drop the shields. Just as here: Don't do those things.
It's good from both a "security" perspective and from a software freedom standpoint too.
