They are natural and correct. However, the first probably implies that the problem was on-going or frequent over a period of time, while the second could mean the same, or that it happened only once.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.