Welcome to our Community, and thank you for your post.
I can imagine how inconvenient it can be to lose an SSH session. We may not have many Community members who connect to their home computers via SSH.
Does your home network remain online when your SSH session drops?
Community > Please chime in if you can assist OP.