As described here, I was experiencing a fair amount of beach balling after updating to macOS 14.
Are you a 1Password user by any chance? The problem was solved for me after turning off "Enable spotlight and 3rd party app integrations" in the Advanced section of the settings.