After that, when I opened the same project again,the same error occurred.
However, after running the following commands:
cd ~/Library
cd “Application Support”
mv Cursor2 Cursor
the issue was resolved.
The Cursor “Allow command” setting was reset,
but the problem is now fixed.