Um if sex can't cause a miscarriage neither can masturbation. I mean your not sticking a coat hanger or razor blades up there... I'm sorry about your miscarriage and get you're grasping at straws but you didn't do anything to cause it and if you're going to have one now there's not anything you can do to prevent it.