"Of" can be used to describe the relationship between two close things, one thing being kind of an explanatory element. And gerund is frequently used. For example:
The idea of getting into the cave unnerved me.
The test of enduring heat as long as I can resulted in some major burns.
But if I apply this principle to certain sentences....
The irresponsibility of leaving the trash behind angered his boss.
The thoughtlessness of running into a ghost house resulted in his death.
This sounds stretched and kind of unnatural... But I'm not a native speaker, so I thought it better to ask you guys. Are they grammatically wrong? And if yes, why is that? And if no, is it possible to use this characteristic of "of" with every other nouns?