Guilt serves a powerful social function in terms of policing our behavior.
Forgiving yourself, not guilt, increases personal accountability.
Guilt doesn't help. What should fill in for it? Remorse. Remorse is when you feel bad about what you did. Guilt is when you feel bad about who you are.
Guilt is not the best way to remedy your mistakes.