The most preventable cause of swelling in the carpal tunnel is repetitive stress injury. Repetitive stress injury is associated with rapid and continuous use of the fingers and hands.