From the description it looks like the program was running fine using the cloud shell for a certain period and after that it stopped working.You tried to restart the program using the Cloud Shell and it failed to start the container though you can still see the instance file in the cloud shell editor.
According to the limitation of Cloud Shell, The virtual machine instance that backs your Cloud Shell session is not permanently allocated and terminates if the session is inactive for 20 minutes. After the instance is terminated, any modifications that you made to it outside your $HOME are lost [1].To see more details on the working procedure of Cloud Shell, document [2] might be helpful.
Considering your question, this is not due to free trial rather the session time mentioned in the limitation of Cloud Shell as the session is not permanently allocated.
I am attaching document [3] for reference in order to explore examples of things you can do in Cloud Shell.
[1]https://cloud.google.com/shell/docs/limitations
[2]https://cloud.google.com/shell/docs/how-cloud-shell-works
[3]https://cloud.google.com/shell/docs/quickstart