Check out these two great articles from USA Swimming to help swimmers understand and control their anxiety:
FIGHT OR FLIGHT: UNDERSTANDING ANXIETY IN SWIMMING
GET IN CONTROL: ANXIETY-REDUCING TECHNIQUES