@joannayang There is no reason to delay. The HepB vaccine is safe, in particular the level of aluminium adjuvant is safe for a newborn, see https://pubmed.ncbi.nlm.nih.gov/22001122/
Waiting for 40 weeks sounds really bogus and dangerous. Countries with good prenatal care don't necessarily...