Do whatever you can to get as much parental leave as you possibly can. Be there for baby and mama, and then -- only then, after baby is a few months old and your partner has healed a bit -- should you start worrying about your job and finances.
Thinking about caring for your new infant and partner's perinatal health are enough work already, and are far more important right now than your job anxieties.
The only solution for you right now is to understand your priorities. At the moment, the only thing that really and truly matters is your wife/partner's health and your baby. Focus on those for the first month.
After that, focus on the job.