Failed to split a vector

Read Read before posting: How do I get my question answered?. The code you posted is not reproducible, hence it’s unlikely anyone will be able to help.