SoftBank Group Corp. is nearing a deal to invest about $400 million in a health care portal run by Ping An Insurance (Group) Co. ahead of the Chinese company's initial public offering, according to sources with knowledge of the matter.