It could be a cable fault but if it is happening in both the external caddy and the hard drive enclosure within the desktop it could be a hard drive fault
Is there damage to the hard drive sata connecting pins?
How old is the drive?
Surface Pro 5 News - release date, UK price, features, specs
Microsoft Surface Studio hands-on review: the iMac killer is here
Best Mac antivirus 2017
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.