Using visualisation
The important thing is to find out which technique works for you, and to practise it before the exam, so that if the need arises you can switch into the technique during the exam itself.
For a very small number of students with more persistent anxiety, medical advice can be very helpful. If this is the case, it is really important to talk to an advisor or tutor, to see what special exam arrangements are possible.