Stress inoculation. Train to do something difficult under stressful conditions. That's no guarantee that you won't freeze up, but it should help. Once you've trained to do difficult things under stressful conditions, actually doing those things should help even more.