What appears to be sleep anxiety in a toddler may actually be separation anxiety when going to bed. Maybe leave the door open or give your child a transitional object that’s huggable like a cuddly toy or security blanket.
If sleep anxiety arises because your child is scared of the dark, perhaps leaving the night light on or playing some white noise may help.