Getting Assertion failed: Assertion failed on expression: 'SUCCEEDED(hr)' error when oppening my project

here’s the full error message

Assertion failed: Assertion failed on expression: 'SUCCEEDED(hr)'
0x00000001414F00A9 (Unity) StackWalker::GetCurrentCallstack
0x00000001414F66B6 (Unity) StackWalker::ShowCallstack
0x000000014138F54B (Unity) GetStacktrace
0x0000000140888ADC (Unity) DebugStringToFile
0x00000001414F309A (Unity) `anonymous namespace'::WmiWin32::GetProperties
0x00000001414F1429 (Unity) systeminfo::GetDeviceUniqueIdentifier
0x0000000141EB2C5B (Unity) UnityEditorConnectClient::OnEnterStateReady
0x0000000141CCC59D (Unity) BaseUnityConnectClient::InitializeSession
0x0000000141EB1ADF (Unity) UnityEditorAnalyticsManager::InitUnityEditorAnalytics
0x000000014061A3F1 (Unity) CallbackArray::Invoke
0x00000001413C0901 (Unity) Application::InitializeProject
0x00000001415C6289 (Unity) WinMain
0x000000014271FDA7 (Unity) __scrt_common_main_seh
0x00007FFFA2CC7344 (KERNEL32) BaseThreadInitThunk
0x00007FFFA32C26B1 (ntdll) RtlUserThreadStart
Assertion failed: Assertion failed on expression: 'SUCCEEDED(hr)'
0x00000001414F00A9 (Unity) StackWalker::GetCurrentCallstack
0x00000001414F66B6 (Unity) StackWalker::ShowCallstack
0x000000014138F54B (Unity) GetStacktrace
0x0000000140888ADC (Unity) DebugStringToFile
0x00000001414F309A (Unity) `anonymous namespace'::WmiWin32::GetProperties
0x00000001414F0AF1 (Unity) systeminfo::GetDeviceModel
0x0000000141CC9AFB (Unity) UnityEngine::PlatformWrapper::GetDeviceModel
0x0000000141A8CE2A (Unity) CrashReportManager::SendCrashReportMetaDataToExternalHandler
0x00000001415C628E (Unity) WinMain
0x000000014271FDA7 (Unity) __scrt_common_main_seh
0x00007FFFA2CC7344 (KERNEL32) BaseThreadInitThunk
0x00007FFFA32C26B1 (ntdll) RtlUserThreadStart

I have looked everywhere online and tried things like

  • changing graphic api to DX12
  • reimporting all asset
  • reinstalling unity
  • updated my drivers…
    but its still happening

Additionnal info:

  • i’m using unity 2018.1.0f2
  • the day before some of my UI text appeared balck even thought their color was white
  • i oppened unity the next day after a Windows update and on startup it said that there was a problem with my license