Derogatory usage of 靈 in old Chinese?
for 諡號 (posthumous name), they're fixed, have special implications. treat the character used in posthumous name as a "code", you need to decipher it's meaning by looking up 諡法解.

this wiki page listed all 183

or, if you can read literary chinese, the internet archive has the "bible of posthumous name": 明諡紀彙編