Benzos are not a very good sleep remedy, and you're learning one reason why. Don't know if the cause of your headaches is the benzo or not, but if it is, then yes, if you want to stop taking them and you've been taking it pretty regularly for 2 months you might be having some withdrawal from it. You can tell in two ways -- don't take any again and see if you still get a headache. If you do, take one and see if you don't get a headache -- if it's the latter, then yeah, you probably need to taper it down, though given the way you've been using it and the short time of use you should be fine.