Overcoming regret


I quit my job just because of a second Covid lockdown and haven’t managed to find another job since December. I have nightmares about what I did and wish I could have just stuck it out. I know I had reasons to do it and I can rationalise it, but I know I’m still not accepting what I did. What tools/techniques can I use to get over this and make peace and move forward?