I have Faced the Exact Same Issue and I have resolved it.
I have Tried all the solutions and nothing worked.
Situation and Fix:
My project folder was initially on Desktop (assuming u have a similar project location)
I just changed the Project Location from Desktop to other Directory (Not Desktop(or any directory connected to one-drive))
"c:/projects/my-project" <-- New Directory
The Issue Resolved.
Hoping the Same for all the Readers !