I've not experienced that from humiliation Silke, but i have felt "panic-ish" after doing something that wasn't humiliation. My thoughts were more along the line of oh my god should i have done this, was it the right thing to do, and unclean as well. I've always associated it with the high level of religion and morals i was raised with. The inner voice that questions everything, despite that fact that i don't believe what i did was wrong in anyway. Though i think in this case, perhaps it was both kicking in, in your subconcious? A bit of subdrop coupled with those general "morals" that many of us had driven into us when we were younger.
What you did was not crazy in any way shape or form. I hope your task master is very proud of you
*hugs tightly*