This is basically a CUDA out of memory error
If You Are Using Free Google Colab, Then Disconnect and Delete the runtime, And Try Again. Try To Clear Memory As Possible
or
You Need An personal GPU which have enough vram to run this.(if You Have Enough vram And memory You can even Able to make Longer videos