Getting Error code 100006

I just got a WD my cloud home 4tb model, and have been trying to use it on my Mac. It worked fine for a couple of hours, and then when I tried to copy files on Finder, it returned an error (code 100006) all of sudden. I could still see the content but can’t copy new files into it. The only solution I’ve found is to reboot the computer, but after copying some files, the problem comes back all over again. It is hooked up with my Google Wifi router. Can somebody explain why this is happening?