Not really sure why this issue is appearing in Colab
You can go to Runtime -> Change runtime type -> Hardware accelerator -> GPU inside the notebook to avoid this error
Runtime -> Change runtime type -> Hardware accelerator -> GPU