The Webb Space Telescope is another example. If it eventually does launch and something goes wrong, we'll have paid >$10 billion for absolutely nothing. These aren't trial and error because the designs are never improved based on the errors. They're just scrapped. SpaceX works in a fundamentally different way.
> "We succeeded in launching the rocket," Zhang told the media. "The experience we gained from evaluating the rocket's flight conditions will help us remodel the rocket as well as advance new rocket research and development."
http://www.bjreview.com/Business/201811/t20181126_800149381....
Plenty of trials and errors here: https://en.wikipedia.org/wiki/Timeline_of_artificial_satelli...
For instance, looking at LandSpace - that quote relates to the launch of Zhuque-1, of which there has never been a repeat despite a maiden flight in 2018, and Wikipedia says that a second flight ever happening is doubtful. The company's second launch (and probably any after that, too) will likely be with a completely different, liquid-fuelled design.
THAT's what failure normally looks like in aerospace. Whoops, we fucked up, and so now that design never flies again, or the company goes bankrupt, or everyone panics and goes through a massive design review because everything was supposed to be perfect and now obviously it wasn't.
So a trial and subsequent error.