I bought a Nikon D800E new in 2012 and sold it 6 years later. Over that time it worked flawlessly and never let me down. It was replaced only because technology marches ever onward, and current digital cameras are vastly more capable...
As for disasters like the OP's: Leica digital M. I will never buy another Leica. Crappy, badly designed cameras, appalling and glacially slow aftercare and a less than honest company. I've never used such a terrible camera: its electronics locked up, and you had to "reboot" it by pulling out the battery and reinserting it - just like a malfunctioning computer! And the shutter self-destructed after a minimal use, among other problems.
I've owned Canon, Nikon and Sony digital cameras - and they all did exactly what was expected without a hitch.