I mean... Depends on your threat model. Hetzner is a very reputable German hoster. The only way someone is going to try and read and puzzle together memory dumps is if you're under investigation for something seriously heinous.
Shutting the VPS down also solves this.
But really, this is a general problem with every "someone else's computer" solution.
E2EE still nice though, wish Immich had it.