I have the same issues on my M4 pro. the result of xcode-select -p is /Library/Developer/CommandLineTools
xcode-select -p
/Library/Developer/CommandLineTools