Dark Sonic appears in episode 67, "Teasing Time", in the Sonic X anime. It is a brief appearance rather than a full arc.
The form is a darker, more aggressive version of Sonic that emerges under emotional strain, and the episode uses it as a short dramatic beat before moving on.
The later run of Sonic X, sometimes labelled the third season, shifted the cast into space and introduced a number of alternate forms and one-off transformations. Dark Sonic is one of them, which is why it is easy to miss if you were not watching closely.
Episode numbers also differ between the original Japanese broadcast order and some regional releases, so if your box set does not match, search by the episode title instead.