Hello Maria,
I am not the mentor for this course, but kindly go through the below link which has suggestion on AWS disconnect issue. Try to find which issue is similar to your issue and then the solution, if the solution still persist, let me know once.
https://community.deeplearning.ai/t/genai-with-llms-lab-faq/374869
Regards
DP