I kept my Z4 for 17 years. I will admit the maintenance costs were high in the last 10 years. I currently have a 440I which is 7 years old but it only has 45K miles on it and hasn’t given me any trouble at all in the 3 years I’ve owned it.
I just replaced the steering rack on my 2011 328xi, ouch.