This is bound to happen with over stress and wasteful thinking I would call of the fear of outcome of your problem
Next Steps
Start by Assessing Your Mental Focus. Eliminate Distractions.
Focus on One Thing at a Time. .
Live in the Moment. ..
Practice Mindfulness. .
Try Taking a Short Break. .
Keep Practicing to Strengthen Your Focus
Health Tips
Consult good Psychotherapist