it is remembering the past mistakes , even the stupid ones
and this is how you fix it
think about it earlier in the day – not during the night before sleeping
try to note down the solution to the issue / problem