It seems like your toddler is over simulated during the day time. Thus it's affecting her during the sleep which may cause 'nightmares'
Cut down on screen time 1-2 hr before bed time.
Cut down on sugar after dinner time as sugar gives them energy.
Read more