You are stuck with yourself for the rest of your life. So just like when you have a coworker or classmate that you don't like but must work with, you just have to get a working relationship going where you can get stuff done and not fight.
Try to not get annoyed at yourself, reward good behavior, be kind even when you don't deserve it, be the bigger person etc.
One common misconception about meditation is that meditation is and end goal, not a practice. That to meditate is to sit down and have your brain be quiet, and if you can't do that, your session was a failure.
But that's like saying weight lifting is about deadlifting your body weight, and any session you don't manage do that was a failure. That is something you might be able to do after years of training. But you start with the smaller weights, learning form and technique, setting reasonable goals, and find a practice that you can make a habit out of. Because a five minute walk every day beats a day at the gym/retreat once a year.