There is an option for this in the GUI.... it is very visible when setting this up.

Trigger failover on I/O errors

React only for volumes configured in failover