I have many issues with bike confidence and it takes a long time to build it up. Could you perhaps just go back to basics and potter along the canal for a bit, zooming up towards Skipton and back just to get some basic riding time in?
I had a long break due to time pressures and was quite scared about getting back on the bike for fear of not being able to ride even the basic stuff but in the end it was ok and I just needed to start with easy stuff. Do you have a favourite comfort zone loop near you that you can do all/bits of? I have a route involving Calverley woods that I do as my first ride every time I have a break from riding, its not technical at all but helps with just being back out on the bike and feeling comfortable on the bike again. Also, you could try going to Sherwood pines as the red route there is a good confidence builder I feel.
Also, don’t be hard on yourself if you find you get scared on stuff you wouldn’t normally bat an eyelid over, thats a sure fire way to make yourself feel worse!
Another thing to add – I changed from SPDs to flats because I spent so much time unclipped due to wanting to be able to bail easily that the SPDs weren’t doing much for me. Once I changed pedals I felt much better as its easy to just stop and stand off the bike if I want to (frequently…)