German cars usually have (together with Japanese, I'd say) the best reputation in reliability. And ICE cars are full of electrical components, perhaps more so than the electric cars (since ICE cars are generally more complex than electric ones). So I struggle to reconcile your comment with what I hear ...
Reputation for reliability doesn't mean reliable! In most top 10 list of reliable car brands (as a whole) there might be one or two German brand in there (with Mini usually being the highest of the German brands).
I've never heard of german cars being known for most reliable. And when they break they are the most expensive to fix. For example audis always had issues with oil leaking and in the US audi mechanics charge the most per hour and they are hard to work on.
according to consumer reports, bmw is the most reliable at 9th most reliable automaker, audi and merc are way down
Oof, BMWs are trash for reliability IMO
I'm told that the Volkswagens made in Mexico are significantly less reliable than those made in Germany. I had a Golf which exemplified this -- all of the motory bits (not a gearhead) seemed fine, but everything else was shit from the windshield wipers that only worked on sunny days to the inexplicable decision to power the automatic locks with the vacuum system.
No need to imagine, just look at the disastrous VW ID line rollout.