I'm a guy, 20s- trying to optimize and maximize my potential.

I have a problem dealing with my sexual frustration I need to study 12+ hour days for my goals and i'm going crazy from sexual frustration

I've had a girlfriend before (only online) and when i had cyber/phone sex with her it felt AMAZING afterwards, i felt great all day, full of energy, could take on the world but without a girlfriend (even online) i get horny... then i fap, and i feel like absolute shit after literal garbage, horrible all day, and i cant focus... and i get angry at women from my sexual frustration and it affects me mentally

Realistically, what can i do here? and i can't get a girlfriend either because i'm poor and not physically attractive, not good game, and a young guy