Indoor Security Cam Disconnects, then factory resets when unplugged

Yes I have…but it makes no difference. It never stays connected or the app can’t access it. If I also just unplug the device it factory resets itself. When I plug it back in I get the voice prompt to perform the setup again.