I've worked in serious NYC restaurants for years, and made a lot of big mistakes, including serving inch-worms to celebrities. I've almost always been treated with respect and kindness when I made a mistake (save for some gentle ribbing). When I first started I had a few sternly worded conversations, but they were always respectful and very clearly delivered with the intention of building me up, not putting me down.
The one and only time I was ever shouted at was in private and one-on-one, and was a motivating factor in my putting in my notice a few days later.
Toxic culture is never acceptable, not in restaurants, or tech companies.