Partial regularity for solutions to subelliptic eikonal equations