Deleting DerivedData did NOT clear the issue for me, still persisting after that (Xcode 14.3.1). Only switching off Live issues helps.
I also experience old errors being still shown even though the project builds successfully, and those errors don't clear anymore. Both these issue slow down development a lot, as I can't trust the error report anymore.