The damage is quite serious.
Since the amount of electricity charged by the motor is basically unstable, the voltage is unstable, so the charging will affect the life of the battery.
After all the energy is consumed, the battery may no longer be able to be used, so the battery will soon need to be replaced with a new one, so it is not good for the motor to generate electricity for the battery. This will make the battery less durable.