Hey Swetha, why are you taking so much time to restart your career, dear? How much experience do you have? If you are scared to give a new start to your career, then I would say that until you apply for the position, how can you understand the actual situation and what you need to resolve your problem? You need to apply for jobs first and face the interviews. During the interview, when recruiters ask you the reason for this break, you just need to tell them the exact reason honestly, and I'm sure they will appreciate this. Also, you need practice.
As you mentioned that you were still working on enhancing your professional skills by learning new courses/software testing, I'm sure this will have improved your skills. Now, in your current situation, you need confidence, determination, and faith in yourself, which are really important for you.
And one more thing, you don't need to worry about anything. Just make a new CV and apply for jobs. Also, if possible, join an institute for new and advanced courses according to the market demand, which will give you more chances to start a new inning. I want to let you know that institutes are also offering placements to their students.
Best of Luck