Rest, take a break, and reset.
Sometimes tackling it from a different angle, or different perspective helps.
I'm not a coder but I noticed whenever I do programming thingies, and get stuck, angry, and confused sometimes I just a break, and then when I retried it, it got easier.
Rest is a powerful tool, as well as dreams, empty your mental, and emotional ram cache, and let the system do partition repairs.
You will solve it, I believe so.