A person who now regrets eating food without a hechsher should confess, be careful from now on, and increase his learning of the laws of kashrut. As the Shlah wrote in the name of the Ari, one whose labor is in Torah need not fast many fasts, lest he weaken and be held back from his learning.