My arduino randomly pauses

Just a thought but have checked the board for loose components or even a dry joint.

Or perhaps there is too much electrical noise which is stalling the crystal osillator or even dust close to the oscillator affecting its load capacitance.