After the disconnection, please check whether the “Galaxy” network still appears in your WiFi list. If the WiFi disappears as well, the ESP32 CAM may be faulty.
If the connection becomes laggy and then disconnects, but the WiFi network is still visible in your settings, the issue is likely channel interference. In that case, please try changing the WiFi channel.
then it gets corrupted, 0xff… which will cause disconnects.
The stream of 0xff are probably just uninitialised memory locations, which suggests possibly something like the wrong packet length is actually sent, i.e not the 138 specified in the header, or buffer is reused before fully empty, or even maybe memory fragmentation over time.
So, i personally think its a firmware bug. Just my own thoughts, but I may be totally wrong!