Don't beat yourself up. A good idea might be to write down what you think my have started the relapse. Could be a trigger like stress for example. This way you will be able to list actions you can take for the trigger so you don't fall in the trap.
Rooting for you, don't give up ;-)