I am also having this issue. JetBrains says "Invalid path to Command Line Tools" but when I try the fix, it opens up a dialog that either hangs or tells me the software is not currently available.
I got this issue both before and after updating Xcode. I also recently just switched to Catalina, I was not having this problem before.
UPDATE: I think I fixed it by downloading the tools manually at https://developer.apple.com/download/more/?=command%20line%20tools