Stochastic dynamics and pattern formation of geometrically confined skyrmions