Sir Keir Starmer's artificial intelligence adviser is standing aside after six months for family reasons.