As RW says above slow down your long runs. For example I am going for a 3:30 - 3:45 marathon time @ 8:30 minute miles but my long runs are (meant to be) closer to 10:00. If you are running close to your HM or Marathon pace each week you are going to be fatigued.
You can get away at half marathon with a few things that 26.2 miles will punish you for. Start experimenting with gels and drinks and stop worrying so much, a few tweaks will make a difference and hopefully these will restore a bit of a confidence and those sleepless nights should fade.
I have been in a similar position before, do your pacework midweek, slooooooow on your long run and get some gels and drinks into your routine and things will feel a lot more realistic, acheiveable and just as importantly enjoyable. Good luck