A long-lived neutron star merger remnant in GW170817: constraints and clues from X-ray observations