Take some ibruprophen, tis an anti-inflammitory, should help a little.
And if you clipped the kerb you should'nt have failed. You need to hit it with both wheels i'm sure.
Dont worry, I failed mine twice over stupid things, took a year away from driving and passed with 1 minor the 3rd time. Result. (not touched a steering wheel since I passed though, damn studentness and insurance...)