Just putting a spoiler here in case some haven't figured it out yet.
In any case though, I'm thinking that the prince is actually quite magically gifted, so much so that he had actually unintentionally cursed himself after the traumatic experience so that he could protect himself. Something like creating new white blood cells to combat a new disease in the body in a sense.