* fix: improve error handling for gRPC and REST connections, including specific handling for network and connection errors
* fix: improve health check and retry logic during user sync, ensuring proper handling of BROKEN state and health updates
* fix: refine health check logic to allow recovery from INVALID state and improve health update conditions during user sync
* refactor: centralize health recovery logic into a dedicated method for improved clarity and reuse during user sync
* fix: update health check logic to prevent recovery from INVALID state and refine health update conditions during user sync
* bump to v0.2.3
* fix: make _handle_error sync
---------
Co-authored-by: M03ED <50927468+M03ED@users.noreply.github.com>