Usually by the time the pups are 8 weeks mom isn't going to care if they're around or not. Some moms do, but most don't seem to mind or worry. I had a foster dog and her pups and a few days after I started them on solid food, she stopped wanting to nurse them and would only hop in to check on them/wake them then hop out again while they screamed about it. So she started sleeping in a crate at night, I made her nurse a few minutes at a time and weaned it back so she didn't have issues, then let my older dogs parent the pups. Mom would interact a bit but for the most part didn't seem too interested in them. Thankfully my own dogs were more than happy to 'parent' and teach the pups manners and such.
Your dog should be fine, and now that she's weaned fine to get spayed.