In my case, I downgraded clang from version 16 to 14.
Here's the steps for my environment (adapt as necessary):
brew install llvm@14
~/.zhrc
clang -v prints
bundle install