Firstly sorry to hear the news and stay strong in the challenge ahead.
Don't be too down on yourself, an element of self concern is a normal reaction and not necessarily a bad thing as you need to stay strong to provide the support your partner needs, thoughts with you and your wife.