I don’t know what your dx is but that sounds like the self blame of ptsd. You said your parents are mentally ill, which could def cause trauma. Speaking for myself, my self blame def comes from my mother, so naturally when something goes wrong, I feel responsible.