That's a very good question. I think we have to watch nutrition , including fluid intake. Don't have a heavy meal before a game.Also sleep quality. Make sure other things in life like fitness are in place etc
I notice many good players have jobs that demand concentration and despite not working that hard at chess away from the board are pretty good when they sit down to play a game.
how do i improve my concentration and mental endurance