Hello Friend, Good that you are seeking a help here. Appreciate you for analyzing your problem in detail and isolating the root cause. What you need next steps is identifying the suitable solution to overcome this daydream or overthinking. Don't worry, there few solutions like lifestyle changes or daily routines , counseling sessions, self behavioral therapies, meditation can help you to overcome this problems.
Next Steps
Don't hesitate to ask for help. Feel free to reach out to me online through Practo for further detailed evaluation and suitable recommendation. Be positive. You will be alright soon.