HUB ERROR The project you are opening contains a locked library/Source assetDB file

A project closed accidentally while importing assets now getting an error:

The project you are opening contains a locked library/Source assetDB file and prevents you from re-opening the Editor or your project

How can i fix this?

I cant open any saved project i have it starts to load but then this error pops up asking me if i want to quit or retry?

Copying the project to another folder helped me…

Solved by deleting Library and Temp folder inside Unity project then restarting the computer.

I solved it without deleting anything. I just went to the properties of the file and gave full access to the user, and then I went to the lock file and unchecked the read only tick box.

Go to your project files → go to Library → and delete both artifactdb.lock and sourceassetdb lock.

That stuff took 4 hours of my work time.