The lifespan of a WD hard drive can vary depending on several factors such as usage, environment, and maintenance. However, most hard drives are designed to last for several years. Western Digital offers a limited warranty for its hard drives that ranges from 2 to 5 years depending on the model.
Anyway, it's best to make a backup and leave copies of important data before your hard drive shows signs of crashing.