https://www.sageadvice.eu/i-attune-to-a-cursed-item-i-die-thus-ending-attunement-to-it-am-i-still-cursed/
I attune to a cursed item. I die, thus ending attunement to it. Am I still cursed?