Sorry to hear about your situation,
Inevitably, we all have to process death and grief at some point in our lives, I’m sure you will guide your son safely through this period.
I haven’t experienced dementia in any relatives so can’t imagine what it feels like, but cancer is pretty common in my family so these things are never easy.