My Raspberry Pi 4B lost remote connection and I don't know how to recover without turning off
My issue is memory corruption.
I have a Raspberry Pi 4B connected with a UPS HAT (with no USB ports left) and a 2 TB HDD, my initial purpose was to make a server with Immich in Docker (installed in the external HDD), which worked and started to upload my photos and videos.
Since I don't have much money nor space, I don't use a monitor, rather I use VNC Viewer to access my Raspberry Pi, which worked perfectly fine.
Now I tried to install more apps to Dock, specifically Bookstack, but I made the terrible mistake of rebooting, this is the moment I lost connection, I could move the Raspberry Pi to my TV and use it as a monitor and make the connection again, but I'm afraid I would corrupt the memory server I made and got tons of work to make :(
Can I just turn off the computer without corrupting and losing the external files? What can I do to preserve the files?