“The resource curse” is what you’re looking for. There’s a lot of counter examples - Norway is the odd one out.
Or even the USA historically. Pre 1900s, America was a country of continual economic crises, and fractured politics.
It was sitting at the time in the latest supply of easily exploited natural resources in the world, yet somehow could not pay its troops pensions lost Civil war, could not keep its strategic oil supply from being raided by the executive branch corruption, and could not keep it plutocrats from directing military action for the sake of bananas of all things.
I think the resource curse didn't apply to Norway because they had an established post-industrial economy for hundreds of years before they got into oil exporting (they didn't even start drilling until the 1960s, 50 years after Venezuela or the Arab states).