The characters in DAII were the best written in the series to me, better on average than in Mass Effect I'd go so far as to say, they all have a 'fatal flaw' that undoes them but which they strive to overcome, very Romantic, and unlike in most wish fulfillment rpg stories, not all of them succeed. I wish more games had the guts to do that to you.
Maybe I'm a pragmatist, but I'm of the unpopular opinion that obligatory "character flaw" is very overrated. I'm not advocating for Mary Sues, of course, but not every character needs internal struggles, dark past, a crippling flaw, psychological trauma, emotional drama etc. etc. I personally like strong (psychologically) characters that aren't prone to brooding and drama. Or just... fun characters.
There's nothing necessarily pragmatic about being a well adjusted individual :p, But I agree with you for the most part, as a fan of comics the grimdark 90s which was so 'hardcore' was insufferable to go through, but I think a distinction should be made between stories involving trauma and stories that wallow in it, all stories are about travelling from point A to point B in order to complete a quest. If your character arcs don't feed into the overall narrative then it's as you say, a sort of writerly onanism, but if everything is thematically linked around these motifs then it should enrich it.
Related to this was the personality system that Hawke had, which depending on your responses to situations, would set Hawke's personallity from serious, aggressive, or flippant. I personally thought this was a good compromise in the era of voiced protagonist and wish it was expanded upon instead of paired down. You could make a Hawke who didn't have time for this emo shit or avoided it with humor, and for the most part they didn't shower you with numbers and confetti to let you know what sort of person on the Renegade/Paragon binary you were working towards like ME and KotOR did, making you more liable to actually 'roleplay' instead of gamifying morality.