My Wyze lock kept failing, deprogramming itself, and it was erratic in attempts to recalibrate it.
I located a problem in the batteries. They were just loose enough to make the connection insecure.
I stretched out the spring in the battery holder and made a small extender out of aluminum foil for that end. Result: The batteries sit firmly in place.
So far, the problem has not returned.