Welcome to HealthcareMagic Public Forum
From your description possible causes of your suffering (Headache) in order of preference:
causing or increasing pain complaints
-Combination of above reasons
You also need urgent evaluation for blood in sputum by a chest physician apart from evaluation by psychiatrist
I hope this information has been both informative and helpful for you.
Wish you Good Health.
Dr. Ashish Mittal