Neither seems quite usual to me. I would have expected these (and both are correct): I can't help wondering why I should have done that. I can't help but wonder why I should have done that.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.