Cant install Unreal Editor

Hi! As the title says i cant install unreal Engine, I get this error:

as long as i have this window up the epic games launcher is on my desktop and i can use it, but when i press “OK” it removes the program and i have to install it again and get the same error