The girl became ‘gravely ill’ after doctors allegedly implanted a heart valve upside down during her open-heart surgery