First step is to find a good PT/physio/chiro who works with the good runners in your area on soft tissue injuries. The average high school and college coaches and trainers are usually not very good at dealing with the root cause of injuries and constructing a plan to address the problem.
Second step is to understand that it takes time for your body to adapt to the demands of distance running. People with a lot of talent can see a lot of injuries because their aerobic/anaerobic capacity is very strong, but their soft tissue/musculoskeletal system is not strong enough yet to support the demand. For you, this may mean holding back on workouts instead of all out efforts. It may also mean racing less, training breaks in between seasons and other strategies to balance the demands on your body.
The third step is to be vigilant about protecting your legs. If something hurts, rest and don't try to train or race through anything. Never stretch on anything that hurts or try to do strength work through something that hurts. Run as much as you can on soft surfaces. Make sure hill training is part of your program.
Finally, never give up. A lot of runners have gone through all sorts of injuries starting out only to then finally get the strength and stability they need to run injury free for many years. My first few years of running were plagued by a number of big injuries (plica syndrome, upper ham tendonopathy, groin pull, back to back metatarsal stress fractures). But eventually, I was able to get through it all and figure out what I needed to do to be injury free. It is a long trial and error process, but if you are smart about it, it will happen.