This error indicates that you do not have permission to install the game. Try the steps listed below to resolve this. These steps are written for Windows 10, so some locations may vary slightly on other versions of Windows.
Background applications can interfere with the Epic Games Launcher so disabling these may resolve your issue. For instructions on how to do this you can visit this article here.
This will ensure that you're able to install games to protected folders on your computer.