ahvaas
                (ahvaas)
              
                
              
                  
                  
              2
              
             
            
              Here is the solution:
Also read this article:
To fix this error I did this In PowerShell (Admin):
net stop winmgmt /y
winmgmt /resetrepository
winmgmt /salvagerepository
winmgmt /verifyrepository
Done. The lighting now builds successfully.
PS: If some commands were not necessary - please correct me.