How to delete a folder that has 65535 links on it?
Wow.  I suggest  trying the following: 

cd ~
sudo find ./.Trash/X -delete


If that stalls out, then try:

cd ~
sudo rm -rf ./.Trash/X/*
sudo rm -f ./.Trash/X/*
sudo rm -rf ./.Trash/X


If that triptych also fails, then I would like to see the output of 

sudo stat -x ./.Trash/X


Hope that this helps,

F.