No. A hard restart cannot affect the PlayStation 5 software. But, hard restart the device only when it is needed.