I have the same issue but with GoLand IDE. I executed the following to open a new project:
cd /Applications && ./GoLand.app/Contents/MacOS/goland dontReopenProjects
After that, I went to File > chose Invalidate Caches > ticked all boxes > clicked Invalidate and Restart.
Lastly, open your project back.