Sonic passes out after defeating Dark Gaia in Sonic Unleashed because the effort completely drained him. Transforming into his Super form and taking on a creature of that scale took an enormous amount of energy and power.
So once the battle was won, he simply collapsed from sheer exhaustion. It's a fitting end to an epic showdown that pushed him to his limits.