The sudden power outage has little impact on the PS4 console. Damage to hard drive, motherboard, unlikely. The only possibility is that you might lose some of your data if the power goes off while you're saving it.
However, frequent power cuts can have a significant impact on the life span of electronic devices