The BMW Z4 2018 and later models shares platform with the Toyota Supra 2019 and later. The platform, at least according to both brands marketing, was co-developed, and it is manufactured in Austria by a 3rd party that also built cars for other brands.
And no, Toyota doesn't make the most reliable cars. It might have been true for some period of time, but isn't true for every model and every year (even Corolla, often suggested as a very reliable sedan, has some versions that are in fact infamous for their tendency for oil sludge buildup that result in engine failures).