If it get factory default everytime its out of electricity thats not a normal behavior.
You should open a support case and you should get that AP for RMA...
Anyways there isnt too much you can do
you could try console the AP and do this
on the apboot
clear os
purge env
save env
reset
Configure it and try again
If you still get the problem just open a suppport case and have them RMA your AP...
What i just told you it just if for any reason its a corrupted firmware on the AP(which i don tthink so) but still like i said there is nothing much you can do.
Cheers
Carlos