xCode requested that I send in a bug report.
Failed to produce diagnostic for expression, please submit a bug report. I can't manage to paste the image here, so I'll just state that the latest Xcode, 15.1 seems to produce spurious error messages on screen which usually manage to disappear over time.
I'll send this in to feedback with the sysdiagnose report.
It's a major pain.