If you are in the EU then you may be covered by EU consumer law if it is a manufacturing defect
https://europa.eu/youreurope/business/dealing-with-customers...
Consumers are entitled to a repair or replacement, for proven manufacturing defects in the UK "Statutes of Limitations" consumers have this right for six years in England and for five years in Scotland.
IMO this works quite well, a cheap but of electronics from a pound-shop has to last 2 years (until the end of the Transition Period), a washing machine would be expected to be running after a decade (or more) unless perhaps it was a really budget offering.
It's practical, though I'd like a steadily inflated underpin to warranty periods too force companies to remove their planned obsolescence and make things more repairable.