The answer is easy stop using whatever kind of web framework for the epic launcher and choose some kind of native solution.
If I am correct epic launch is using electron to make the app which is notorious for the slowness and massive. They just should used another solution that is faster that that crappy framework.
Still better than the EA app. Which causes game to not load or crash within minutes making games unplayable