Scaling of domain cascades in stripe and skyrmion phases