I have had a lot of BMWs over the years, from my first secondhand 2002 up to my recent F12. Including Z3, 3series, 7series. Never a 5series though.
The cars have gotten a lot more reliable - which doesn't mean perfect. But neither are the competitors
So you won't be happier in a Lexus og Mercedes, but you will in your next BMW