Hello.
This is a matter of individual decisions and choices. If you are sure you won't be able to do it before you get married, your problem revolves around the desire factor.
One of the ways of avoiding the emotional disturbance is to think rationally. Knowing that you do not have a choice until you get married, you have to find out ways how you can think differently so as to avoid getting disturbed. If sex is not an option, you can always think about masturbation as a way of taking care of the desire.
Constantly thinking about what you know you can't get now will only disturb you more. There are always other ways of dissipating the anxiety.
Take care.
Abhijeet Deshmukh, MD
(This post is for the purpose of providing medical information and is not a substitute for a face-to-face consultation with a doctor. This post is not intended to give or rule out a diagnosis, create a doctor-patient relationship or replace an existing one. I am not able to diagnose medical conditions online. Please consult with your doctor or a qualified healthcare provider for diagnosis and treatment options)