Throw error if matrix is unreadable.