Specify clang version? UE4.27

I’m currently using Unreal Engine 4.27 on macOS, but I’m facing an issue where Clang 16 is installed by default, which is not compatible with UE4.27. To resolve this, I installed Clang 11 separately. However, I’m unable to create a new project because of this compatibility issue.

I also checked the following post, but since the version is different, I’m not sure which parts are relevant to my case:

Linux: Specify Clang Version

Is there a way to force Unreal Engine to build using a specific Clang version? Also, downgrading or upgrading the Unreal Engine version is not an option for me. Any help would be greatly appreciated.