As you have observed yourself, you are getting headaches when there is tension...
There could be various reasons too...
Perhaps, you could be comparing yourself with others or, you could be unhappy about yourself.... Etc.
Next Steps
It is better to visit a psychologist in your city personally for a detailed understanding and clarity.