Maybe this is the right place for a solution.
I run a pi4 on omv 6 with a powered usb hub connected to 1 ssd and a 5tb external hard drive.
My apartment power backup kicks in a few seconds after the power goes...
Of late this is happening quite frequently and i think a power backup is in order...