Fox: ‘Modern Family' star Julie Bowen thought she was ‘gonna die’ after learning she needed a pacemaker at age 29