I switched from the visual studio from 2015 to 2019, everything works fine but after their first update I got the mentioned error.
After googling, I found the solution here just follow the steps