I had an early induction at 16w gestation as my baby was deemed 'incompatible with life' I gave birth naturally and it was a horrifically sad and lonely time of my life.
All I can say is have lots of counselling before and after, for you and the IP and have lots of support around you.
You are a wonderful person doing a wonderful thing and unfortunately life is cruel sometimes and throws horrible life lessons at you.
Don't try to wreck your brain wondering 'why'.
Be kind to yourself in the coming weeks.