I am sorry you had to deal with that nonsense and it is actually a toxic work environment if your boss can shout and insult his subordinates publicly. It’s better to try switching jobs to a company with decent HR policies rather than being suffocated because everyone should be able to share their ideas at work.