Your power cuts are probably "safe" for most of the hardware, but they're not so good for your Operating System (Windows?) drive.
Windows keeps hundreds or possibly thousands of files open on the boot drive when the computer is running and closes all these files gracefully during a normal shutdown.
Windows also marks a 'bit' on each drive to indicate the shutdown was normal. When Windows starts up again, it checks this 'bit' to monitor the status of the last shutdown.
If the OS detects an uncontrolled shutdown, it often runs CHKDSK to check all your drives for errors. This can add several minutes or longer to the boot time. If CHKDSK finds any errors, it attempts to repair them, but it might not be successful.
Your computer may survive dozens or hundreds of unexpected shutdowns, but eventually it may fail when crucial operating system files are damaged. Alternatively, a program or game may stop working for the same reason.
You can continue using the system and accept the fact you might have to re-install Windows, or you can buy a UPS. Since your power cuts seem to be "normal", you should be OK with a standard (cheaper) switched UPS.