Block processing in the indexer is performed by a transaction, so if an error occurs in a transaction, the DB state will not be changed. However, the UTXOs cache is updated during block processing, which may ultimately cause the information in the cache to become out of sync with the DB.