Its hard to believe that Dan Luu can’t pass algorithm interviews.
I think the best course is anxiety management. But unfortunately, some people get dependent on drugs just to calm their nerves before something important. I know people that can't hold meetings or presentations without taking beta-blockers and the likes.
So, YMMV, but people are often able to be accommodating for things like this :)