Based on the error message it seems the session restart might not have cleared the GPU memory.
Did you change anything else or did you just restart the notebook?
Could you restart the environment and check the used GPU memory?