Use your experience to do another startup, but avoid doing things which led to startup failure. The worst thing you could do is give up. Also try to find investors first instead of spending family money on first business.
Are you sure that's the best advice? I can't be certain, but I would advise some stability (get a good job for a while) and then another startup only if that's what the OP wants.
"Never give up" makes a great saying, but it's terrible advice because the scope is completely undefined. Never give up on what? A particular startup idea, the idea of having a successful startup, or perhaps just working in the tech industry? Some things are really good to give up on and move on from.