This is not a Sigil bug; it's a case of
GIGO.
Except when generating a TOC, Sigil does not change/add id values.
It's up to Sigil users to ensure that ids in epub2 files start with a letter.
(You can use ids that start with a number in epub3 files.)