Unity won't open -- Stuck on splashscreen for ~10 minutes then strange error message.

When I open unity, regardless of if it’s a new project or an existing project, it’ll get stuck on the splash screen with the load bar saying “Load Scripting Assemblies”. It’ll sit on this for about 10 minutes before giving me this strange error message (screenshot below) saying "Failed to present D3D11 swapchain due to device reset/removed".

I just literally installed Unity, have never used it before. I got it to open once, then after installing Visual Studio, it wouldn’t open again.

Edit: Unity seems to work with the beta, but not with the stable release.

I have the same problem. Does anyone know the solution to this problem?