Crashing on launch and low fps

I have just installed UE4 and when i create a proyect it crashes when the editor loads, other times it loads successfully but the editor lags a lot. I tried dubugging UE4 in VS17 and this error is displayed by VS17 debugger, (i think this error is what causes these crashes):

Exception thrown at 0x00007FFF4019AEC9 (d3d11.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x0000024A00000000.
The subprocess is: nvwgf2um.dll

I tried setting target parameters to -DX12 and it didnt worked.

All video drivers are up to date.

System Information

  Time of this report: 6/7/2018, 02:01:19
         Machine name: OSCARPC
           Machine Id: {38E93789-03AF-4AA7-91A9-D6516442754D}
     Operating System: Windows 10 Pro 64-bit (10.0, Build 16299) (16299.rs3_release_svc_escrow.180502-1908)
             Language: Spanish (Regional Setting: Spanish)
  System Manufacturer: Gigabyte Technology Co., Ltd.
         System Model: Z370 AORUS Gaming 5
                 BIOS: BIOS Date: 01/22/18 20:20:28 Ver: 05.0000C
            Processor: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz (6 CPUs), ~3.6GHz
               Memory: 16384MB RAM
  Available OS Memory: 16330MB RAM
            Page File: 10090MB used, 8671MB available
          Windows Dir: C:\Windows
      DirectX Version: DirectX 12
  DX Setup Parameters: Not found
     User DPI Setting: 96 DPI (100 percent)
   System DPI Setting: 96 DPI (100 percent)
      DWM DPI Scaling: Disabled
             Miracast: Available, with HDCP

Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.16299.0015 64bit Unicode

Display Devices

       Card name: NVIDIA GeForce GTX 1080 Ti
    Manufacturer: NVIDIA
       Chip type: GeForce GTX 1080 Ti
        DAC type: Integrated RAMDAC
     Device Type: Full Device
      Device Key: Enum\PCI\VEN_10DE&DEV_1B06&SUBSYS_85EA1043&REV_A1
   Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER] 

Device Problem Code: No Problem
Driver Problem Code: Unknown
Display Memory: 19291 MB
Dedicated Memory: 11127 MB
Shared Memory: 8164 MB
Current Mode: 1920 x 1080 (32 bit) (60Hz)
HDR Support: Not Supported
Display Topology: Internal
Display Color Space: DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Color Primaries: Red(0.641125,0.333508), Green(0.331555,0.626477), Blue(0.155773,0.047375), White Point(0.313977,0.329602)
Display Luminance: Min Luminance = 0.500000, Max Luminance = 270.000000, MaxFullFrameLuminance = 270.000000
Monitor Name: Generic PnP Monitor
Monitor Model: BenQ RL2240H
Monitor Id: BNQ7F0C
Native Mode: 1920 x 1080(p) (60.000Hz)
Output Type: HDMI
Monitor Advanced Color Capabilities: None
Display Pixel Format: DISPLAYCONFIG_PIXELFORMAT_32BPP