Life is not perfect. We all make mistakes. Some of us get lucky and just never get caught doing something we should not have been doing in the first place. And then there are those who don't inhale! Own up to it, learn from it and move on. Best of luck in your aviation endeavors!
I assume you are a young adult. Don't fall on your sword. It's not the end of the world provided you make it a true learning experience.