as far as i know,rn now due to covid you are allowed to stay past 6 months, you can confirm that by calling cic call center
But in case you end up having your baby in india, i guess you also have tk apply for his immigration, just confirm these things with someone who is professional to avoid...