If I am 10 weeks pregnant and I can't sleep well at night will this affect the baby?

Find a position. Not really, unless lack of sleep causes you problems.
Sleep deprived. Unlikely. Many woman don't sleep due to hormones and size. The fetus will pull from u what it wants. So u may be tired but normally not a problem.