You’re doing the engineering thing and focusing on the trees instead of the forest. It sounds to me like you have other things going on in your life that you aren’t acknowledging. Often stress and anxiety are primary sources of attention deficit. As we get older more and more stress is piled on us and it becomes even more important to manage it in a healthy way. I encourage you to reflect on your mental health because it might have some clues.