Head hurting

Makayla
The last few times I've fingered myself and I got really into it and things the back of my head has just started hurting and is very painful and it last for a bit afterwards. Any idea why?