Error 0002 means "The system cannot find the file specified", so either the feature install package is corrupt or missing or if it's trying to reach out to Microsoft it is not able to for a variety of reasons. If it's corruption you can try running one of the following repair commands, reboot, and try adding the feature again.
sfc /scannow
or
dism /online /cleanup-image /restorehealth