Take a thousand dollars of your salary per month and use it to hire a private health coach / personal trainer. Someone that can tell you how to workout and how to eat. Do this for 6 months and you will be in the best shape of your life, which will solve your immediate problem of getting rejected. It will also give you the confidence to not get so emotionally distraught if you are rejected.
There is no code to being successful at dating, only the knowledge that comes from experience. The sooner you can get experience, the sooner you’ll make mistakes and learn from them.