"looses connection" but it can be because of any reason and not only WIFIAre you sure you didn't?
I'm pretty confident you have some complex setup, with different wlans/lans/vlans, and some device that is supposed to bridge communication between those is not doing things correctly. Your camera is working fine.
If you want some help, provide a simple diagram of your home network so we can start understanding how you set it up and where the problem could be.
No my network is very simple no VLANs
Its a separate WIFI network only by name to make sure the camera connects to the closest AP