Call me careless, but I personally don’t think exposing services publicly is that big of a deal. I’ve been publicly exposing Home Assistant, Jellyfin, Immich, Joplin and a few others for at least 3 years now with no repercussions. Everyone’s risk tolerance is different, but I wouldn’t write off publicly available services. Precautions like a reverse proxy, Crowdsec, Fail2ban, and Authelia all lower the risk profile.
For what it’s worth, I only ever had that be a problem once in the past year I’ve been using Immich. And I don’t update more than once a month. I think it is uncommon anymore for them to release updates for the app that are incompatible with various sever version iterations.