Hmmm, I’m not familiar with Spotify - I’ve never used it - but looking at the spotify PKGBUILD it looks like it installs the Spotify directory to /opt (lines 79-81).
So, how about trying installing SpotX while specifying the path with -P, like this:
bash <(curl -sSL https://raw.githubusercontent.com/SpotX-CLI/SpotX-Linux/main/install.sh) -P /opt/spotify
Does that work?