Not the case with the newer ones. The standard warranty on an HHD is two years although there are 3 and 5 year drives available.The problem with a WD Black is that it runs much hotter than other drives.Some say SSDs are not as durable as HDDs.
SSDs generally have a 3–5 year warranty though Samsung and another offer 10 year units. They run much cooler and draw far less battery power.
The battery issue is really insidious and seems to be time dependent. When it happens, it swells from 3–5x its size. It took about an hour when it happened to my daughter's 6 year old Macbook, breaking the motherboard and extending the back case before it popped the screws. As she had it open at the time, I was able to sell the screen on ebay. The hard drive survived and she had recent TM backups so no data was lost.
Apple engineers I know recommend replacing the battery after 5 years no matter what shape it's in.