Fetching details from the dictionary...
to lose one's presence of mind; to lose one's head; to be thrown off balance; to get upset; to be bewildered; to be flustered