An MP was left wondering if his family of four would become three following his breast cancer diagnosis, he told the Commons.