I'm not an expert, but I don't think gender dysphoria can come from abuse. It may trigger it, but it's something really deep that comes from who you are on the inside. You are who you are, but like any other person, it's hard to get to know you.
Trauma hurts you, breaks you, and may even ruin your life, but it can't change who you are. And, if you can overcome it, you can grow, and know yourself even more. You may be not okay for the rest of your life, but that IS ok, because you are you, and you can be happy even after all that, if let yourself be who you really are.
Then again, I know nothing to be honest.