VL53L1X freezes

occasionally my VL53L1X freezes at a certain distance, eg 1234 when using the sample code below.

while True:
    try:
        ToF.start_ranging() 
        time.sleep(.01)
        distance = ToF.get_distance() 
        time.sleep(.015)
        ToF.stop_ranging()

Is there anything I could check? So far only booting the device helps.

Maybe the two different ‘sleep’ amounts are causing a clock timing error? Try changing those to the same value (either 0.1 or 0.15?)

Does it un-freeze intermittently as well?