I was able to get rid of the errors by upgrading to the 20250914 snapshot of clangd. The latest stable version 21.1.0 still has the errors.