One of my aunts passed recently. She was a dementia patient. She stopped being fully aware of things around 2018. Would her kids have to do the Namaz for the last 4 years of her life even though she was not 100% aware of what was going on?

If she was like a child, then she was not asked to pray or to fast, and no need to make up the missed prayers.