The trope of a powerful person brought down by hubris has existed since ancient Greece and probably earlier.   It's more that women are now getting the same storylines as men, not that they are being punished for being ambitious women.