Hello Yellow bird,
I think when you get a fancy for something or other, and for many people including my wife who also likes chocolate, in your case the temptation was there, and you like myself tend to go for it .
particularly when your really enjoying it, and most likely eat more than perhaps you should have, many of us have done this ,including myself quite a few times, much like some men who go for a jar in their local pub, and then instead of say having a pint possibly two, end up drinking more than they should have done and later regretted it ,with a painful hang over,
in my youthful days i did this too , and said to myself never again ..........that was until the next time when i did do it all over again ?, eventually over time i did learn to eat and drink just enough to avoid the unpleasantness of over indulgence, well many of us have been there ,
so join the club , ............i hope you're fully recovered and enjoying life again,