WD Passport keeps disconnecting after 30 seconds to 1 minute on Mac

it could be a bad cable or a power issue…

do you have a Macbook?

test with a different cable and see if you have better results 

you might need a power booster cable