Finally got around this by renaming the EpicGames folder in C drive to Ep.
It was creating a file in many nested folders as part of the installation process that caused the error. Removing most letters from the folder name was enough to get it to install.
Yeah, I did the same thing to fix this issue. Just changed the root folder to Ep. Don’t know why it worked but it did.