the cause of this error is Epic Online Services.
Start Windows --> Search: Services and find Epic Online Services -->right click --> properties and launch type: manually press ok and restart the computer.
Now run the game after some programs are installed the game will open.