No time to shut down mini plugged into UPS
I live somewhere with a flakey power grid, so I have my 2018 Mac mini (running the latest version of Catalina) plugged into a UPS (uninterrupted power supply) to give me time to shut down during longer outages or keep working when the outage is just a few minutes. This was working great for a while, but now, my mini just shuts off if the power goes out. Everything else plugged into the UPS, including my monitors and modem, keep running until power comes back or I turn off the UPS.
What leads me to believe that I might have an OS issue rather than a problem with my UPS is that the second power is restored, my Mac is ready to go -- just have to sign on and get back to work. There's no indication that it was shut down violently or even rebooted. In that sense, I don't have a problem, but for the fact that I have to work in MS Word, which doesn't have an autosave feature. So if my Mac shuts off with no warning, I haven't manually saved in a while, and I'm nearing the end of a Time Machine backup cycle, I can lose up to an hour of work. Is there a setting I haven't found that can tell my mini to give me a couple of minutes to shut it down when the power situation gets dodgy?
Again, I was able to do this in the past. It's just been so long since I've been in this situations that I don't know how many updates ago that was.
Mac mini, macOS 10.14