I only have a couple of photons but I was having this same problem that happened anywhere from 1-7 days randomly. I wrote a little program that monitored when the WiFi and cloud lost connectivity and did a serial print to a connected computer. I noted the problem seemed to happen when the cloud would connect and disconnect multiple times rapidly. In this link is what I did to fix it. Haven’t had either photon breathe green since I did this. Next thing to learn
Good luck