Hello Friend, Appreciate your interest to seek help in this forum. When are noticing such behavior is a change from your original character, then there is some emotional disturbance that is causing you such strange behavior. As body and mind are interlinked, your body also exhibits distress like headache, palpitations, sleeplessness etc.
Don't hold on such disturbances within you, instead talk to a psychologists and discuss your problem in detail. I am sure you will be able to see a different prepective about yourself and also able to figure out the reason or root cause.
Next Steps
Consult a psychologists directly or online. Feel free to reach out to me online through Practo app for further detailed evaluation and suitable solutions that you can follow practically to overcome this problem. Be confident. You will be alright soon.