I've just experienced the same issue on my 2017 70k miles car. Pretty poor from a quality perspective imho, my previous 2.0 tdi Ford was still on it's original after 12 years and 140k. I've been very lucky that the used dealer I bought it from has been very honest. The warning light came on, on the way to get it MOT'd with them, 7 months after purchase.
After a few phone calls they've pulled the diagnosics and admitted that the error had previously appeared prior to my purchase and are therefore doing it for free. Whilst obviously they should've sorted it before selling it to me, fair play to them for being honest and sorting it.
Disappointed it's failed, but still love the car. Easily the comfiest and most luxurious car I've owned.