When the drive is in position ups on AC of housing in power failure enters the inverter when returning energy is not danger of damaging the inverter?

No, it will not damage the inverter when home power comes back.