You should try to weigh the pros and cons of your options as best you can, of course. You should also try to break down your tasks into achieveable goals as much as possible so as to build up your confidence as you achieve them and lessen your anxiety.
But at a certain point, you can only know and project so much about your options unless you actually try them. When you choose something, dont quit when you start to doubt if theres a better way. You aren’t actually equipped to make that evaluation until you have tried and succeeded/failed with your current path. Its a good thing to fail, it teaches you a lot going forward.
I think the real problem you need to address is your difficulty accepting risk, which i suspect is tied to a fear of failure. Start trying to convince yourself that mistakes are good things.
When choosing a path, plan benchmarks where you can step back and evaluate concrete work up until that point. Only consider changing your path if you have concrete evidence to prove that you’re going astray. And ask others for their opinions along the way, don’t do it all alone
Good luck