That's strange. I'm rather knowledgeable about tech, but with everything you did I'm having trouble thinking of any possible error on your end. What are you playing the game on? I.E. what model of what device, using what version of the OS?
I've had similar issues when using my phone's hotspot to connect my computer to the internet. I've got all 15 gigs of hi-speed data, turn the hotspot on, it connects, and either says "Connected - No Internet" right off the bat, or will randomly decide to do that - very inconvenient when you're in a Zoom meeting for one of your college classes -_- But yeah, the only thing that is coming to mind right now is the most recent update causing a problem with your device - please respond with details.
Actually that's not entirely true - the erratic nature of your problem makes me think that it's more likely to be a problem with your device(s) and your router communicating. How familiar are you with the hardware behind all of that? Also, it might be worth giving your ISP a call. Are you having issues with anything else, internet-wise, or is it just this game specifically? Because if it is truly just SWGOH, than I gotta think that it's a problem with the most recent update, and it let you play for awhile while it was downloading everything, then finished and BRAMP! Disconnected again.