I got an M1 macbook pro when they first came out, in about April of this year the screen suddenly stopped working without warning. External display worked fine, internal one just showed random colours. Took it to apple for repair, they tried various things and said the mainboard need to be replaced at a cost of something like £700. I refused and just put the laptop away until someone at work mentioned that in the UK we have the consumer rights law that gives us 6 years for which we can expect our purchases to continue to function properly. I messaged apple support and mentioned my consumer law rights under the law and the immediately dispatched a box for me to send the laptop to them and had it collected the next day. In under a week it was back, repaird (new display, top case) at no cost to me. It's amazing what a difference knowing your rights makes!