Concentration needs happiness. A mind in pain concentrates with difficulty.
Reduced concentration is an indicator of more or less conscious suffering of the mind.
Meditation on your suffering will make it conscious and lead to improvement of happiness and concentration.
Slow down and meditate or think when you are feeling discomfortable. It will greatly improve your happiness.