Song Shuhang was thirsty because he had been spitting silk all along.
In the end, he wasn't a monster silkworm or monster caterpillar, and his throat would inevitably get dry if he were to shoot silk out of his mouth for too long.
Aside from being thirsty, Song Shuhang felt somewhat dizzy as well. Spinning cocoons was something that required a lot of technique, and he couldn't spin it just by shooting silk out of his mouth. While spinning the lining of the pupa shell earlier, he first had to spit silk according to a C-shaped pattern, then an S-shaped pattern, and finally an 8-shaped pattern. As if that wasn't enough, he even had to stretch out his hands to fix the position of the silk threads.
As a consequence, even his head had started spinning at this time.
Now then, why am I going through all this trouble in the first place? Oh, right... it's because I drank the demodragon medicine earlier to strengthen my constitution.