Constant self sabotage

Hey there . I'm 20yrs old and I've noticed this trend of self sabotage in my life .

I have a bad procastination problem , but there are times when I'm disciplined too . But whenever the chance presents itself I'm self sabotaging .

I'm in uni rn , finals in a week and I had the whole year to study . But I didn't . I don't make the right choice ever , always pushing last minute deadlines .

Whether it's really important exams or uni exams , I always have this nuke everything button in my brain that goes off when things get difficult . Idk if I'm stupid or just a pussy but how do I dig myself from this hole I always create ?