Here's What I Think You Can Do:
• Rather than getting upset, I would not let him affect me. If you get upset, you are not doing anything good for yourself.
• Start giving him a different reaction when he scolds you. Start apologizing profusely, thank him for his guidance… just do something different than what you are doing right now.
• Ask him if you can talk to him during a coffee break. Can you do that? I don’t know if you are that assertive. Share your discomfort with him and see what he has to say.
• Discuss this with a senior member in your company.
• Discuss this with your HR SPOC.
• Write him a formal email… but make it very polite and diplomatic.
• See if there is any truth in what he is saying… Do you upset him with anything?
• Lastly, if everything fails, look out for a change…
With the limited information you have given, I can only suggest this. Maybe you can call me in case you want to discuss this further. All the best!