Sorry for the incredibly late response.
I just tried running the code as is and everything should still work. I’m not sure why the error occurred, but it’s saying that the SVM has 7201 features while X only has 4374 features.
The tf-idf vectorization from my code should result in 8272 features.
Hope that helps!