Cursor is delusion about what code is currently in my codebase?

Cursor regularly is delusional about what code is in my codebase. It will quote a certain line of code to me, but the actual line of code is different. I’ve screenshotted an example of this. I am sending the entire codebase as context to Cursor when I use this.

What may be causing this?