I can relate to this and it has happened to me. I was told to stay positive and think positive by saying what a beautiful day it is and how lucky am I to be out golfing on this gorgeous day. Well that didn’t work well for me. If I was delayed between the front 9 and back 9 and if the putting area was close, I would take a few practice putts to stay focused. If the putting area is not close, I will make sure I take some practice swings with different clubs. I will also focus on hitting the ball correctly on my club versus trying to really swing hard. I tend to hit it better when I am not trying to nail it! Everyone is different, keep trying different things. Best of luck!