Agree with the above. It could be a blessing in disguise if you are honest with yourself about what went wrong.
Maybe you made some mistakes. Maybe it was simply the wrong job/boss/environment for you, and you'll do better elsewhere. Maybe it's a combination of those.
But regardless, you can definitely bounce back.