There can be multiple factors behind the symptoms which could be either physical or psychological which requires an assessment to rule out any kind of anxiety, panic, etc. Kind of issues. It could also be related to lifestyle stress and personality.
Next Steps
You should connect with a psychologist for proper knowledge and guidance.
Health Tips
Try to balance your life with exercises for concentration enhancement