@circfruit I don't think this is a TRAMP issue -- it will timeout after a while already. Emacs does have multiprocessing, but and TRAMP already uses it for somethings.
You already tried C-g and see if it gets unstuck? That your system runs out of memory seems like a larger concern though ... it could be that there is some memory leak going on with Tramp connections or something leading up to 80G?
More information needed though ...