You’re tightening your tuning peg too fast. When you’re re-tuning your guitar after changing the strings, you want to give the strings some time to stretch out and get used to their new tension. Walk away for a few minutes and give your tuning pegs a few more turns.