Orgasm headache

I’m very pregnant and the past 2x I’ve orgasmed (clitoral masturbation) I’ve gotten an instant and intensely painful headache. What is this? Will this problem go away after delivering?