Hi man
You can do nothing. You can't tell yourself - " Hey you ! Stop getting arousal !!!"
Sorry it seems very funny

It is only one solution - try to masturbate, gently. So you will ejaculate, and it is great and exclusive solution.
I do it such way, otherwise it ends by abdomen, testicles and perineum pain !
Dont worry if your girlfriend will see it unintentionally. She will be glad that you are like her so much!
It was in my case - my girl saw me doing it, she was a little surprised.
But i told her, that she is so gorgeous, so sexy - that i couldnt stand it.
She smiled to me !