Damn, that sucks. Try and make yourself comfortable and do as much work as you can. Also, perhaps you could minimize the factors that cause these symptoms(I understand if this won't work)
If none of this works, maybe it might be so serious that you should contact your school and talk about mitigating circumstances?