Son of the Serpent
Pupil
"Release from boredom and stagnation" is quite the understatement and quite tye oversimplification.No idea, but personally i would argue the doing evil things simply to provide a release from boredom and stagnation would in fact make that hero/deity evil not good. In my view, that is not enough of a reason to manifest evil.
Its basically to save the world from an eternal fate worse than death, but to make that clearer than in just a general sense id have to type up page after page after page to explain it with examples.
It would be pretty bad though. You have to remember, in d&d good, evil, law (arguably order), and chaos are mor than just morals. They are underlying physics on a cosmic level. If good is literally starving to death it will do more than cause stagnation and boredom.