Can't get task disk usage: opendir() failed

From BOINC Wiki

You encounter this error when BOINC has too many files open at the same time, because it is not closing files when it is done with them.

As a programmer, always use close() on objects you opened.
If you're a user, try to exit & restart BOINC. Do report this behaviour at the project forums.