As I understand it, the English language (as used in America today) has two meanings for the word “Fail”.

1. Being unable to meet a goal (even if you did real, extensive and competent work towards meeting the goal).

2. Being unable to meet a goal because you didn’t really try or because you tried in a poor manner.

Generally speaking, our culture doesn’t call you a “failure” unless you’ve failed in the second way.

If you’ve failed in the first way, you needn’t be ashamed.