What you think is failure is actually something good. Failure shows that you're doing something. Through failures a lot of great inventions and innovations have come from that. Failure shows how you improve.
Don't give up as that's actually failure. Not doing anything is true failure.
Stay motivated and never give up trying something new.