If you really want to continue working with him (as opposed to just leaving) you'll probably just have to stop being sensitive to the screaming and berating. He has a condition, you can either excuse yourself or just have a stronger personality. You can have fun with it, yell back but don't bully.