Whenever i try to install fortnite or unreal engine 4 at startup of epic games it crashes

please help it crashes on startup and i cant download it whenever i try it freezes my whole system
my specs
gigabyte motherboard
nvidia 1060 6gb graphics card
17 8th gen cofee lake
16 gb ram