To lose concentration / To lose focus
Natural collocation for losing focus. Common in sport, study, and work contexts.
I lost concentration with all that noise.
At the last moment she lost concentration and made the mistake.
—Why did he fail? —He lost concentration.