You may want to check the reliability of your wifi to the room your sprite is in. I have mine in my garage and the wifi signal was pretty weak. Had similar issue, would lose connection frequently.
I fixed my issue by adding a wifi repeater in the garage. After installing, I've had no problems.
Just for FYI, I have a mesh network (eero) so adding a wifi extender into the garage was very painless.