You are not spoiling yourself when you focus on self-care... you are preserving yourself.
Our DNA and experiences with our own parents are deeply ingrained training that produced default parenting skills, especially in times of stress. Breaking harmful non-productive, or non-age-appropriate parenting patterns takes curiosity, inquiry, and persistence.