Hi dats-vs-cogs hope you are well!
I had a similar problem which I tried to solve. I am open to more suggestions of improvement.
See my post Platform: Colab β Problem - Colab session timing out after 12 hours model requires 20 hours what is the solution?
Maybe you could combine this with other suggestions and make something better.
Hope this helps
mrfabulous1