Influence of internal magnetostriction on the formation of periodic magnetization configurations