Yep. I've had this issue when I was nervous/anxious with a new girl. When your clothes are on there is no expectation for you to perform (hence less anxiety). If you try to force yourself to get an erection on demand, it may backfire.
Next time, just try to keep yourself mentally calm &...