If I say "can't" instead of "don't", would the meaning be changed?
Yes, the meaning would be changed if you said "can't sleep" instead of "don't sleep" here. "Don't sleep" implies that she doesn't sleep because of her own doing, so she chooses not to sleep. However, "can't sleep" implies that she is unable to go to sleep, not based on her own doing.
Get more Native English Expressions >