After deleting and installing Unity due to a problem it caused me, these errors appeared in the console. I've already tried to reinstall Unity but they won't go away.
EDIT: I get these errors in every project I open.
Open your project in Unity first.
Then follow these steps.
for me clicking reset packages to defaults in advanced of the package manager window
I usually go to the Project Tab and Right Click on the Assets Folder and click "Reimport All".
Depending on wicht version of Unity this could happen more often that you want... f.e. using an Alpha Version.
I find it faster only reimporting than deleting files and importing again.
I don't know exactly how, but updating the Package Manager UI worked for me.
Window -> Package Manager -> Package Manager UI
The best option to handle this issue is to remove these (2) folders:
Create a new Unity project in the same editor version.
Then copy both above folders from the new project and paste them in the original projects Library folder.
!Important! Make sure the original project is closed!