I think the seconde one is correct because you are saying that you could do sth it means that you had the ability to do that thing so it won't be right to say that I could then say I couldn't you could do that but you didn't want or sth else prevented you from doing that but you still had the ability so number 2 is correct
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.