I would think you probably stand a fair chance of getting your hard drive replaced under warranty if you only got it 5 months ago. Check your documentation/packing slip/manufacturer’s website etc. Many are warrantied for 1 year or 3 years.
Back up your data and contact the manufacturer for support.