Actually yes, you did fail relative to the standards and expectations society and you have placed for yourself. And you have tasted the potential brutality of life and the fragility of ego at an early age, your parents were right.
And that might be a good thing...in fact it could be the best thing that ever happened to you. What happens next depends on your attitude toward this failure.
Grow and improve your independent thinking that led you there, sharpen your understanding of life, build more skills, deliver to people and make an impact and you'll go really far, or stay in self pity and perpetual cycle of defeat and you'll sink further and further in life.
Also, getting a job is not that hard if you are good at coding. Your art education and early failure will give you different perspective to life and this will be a value add to many companies and people if developed correctly.
I wish you the best of luck and look forward to see great things from you :).