The best way to prevent hard drive failure is to upgrade to an SSD. An SSD also allows you to increase speed by up to 300%:
Prices as at June 2022. Note that all upgrades include Windows 10 as well as Office 2016:
R600 – 120GB SSD
R800 – 240GB SSD
R1100 – 500GB SSD
R1850 – 1TB SSD