Crashing during Windows 10 setup

During the windows 10 setup, everything installs just fine until the “windows will restart automatically for you” screen, and after the windows loading circle pops up, and a weird glitch happens then a black screen occurs

Removing the wifi card fixed this issue