fix(linalg): validate slice lengths before SIMD loads (#8593)