wiktionary
ref
From crazy + -ness.
etymonline
ref
craziness (n.)
c. 1600, "infirmity, state of being broken down," from crazy + -ness. Oldest sense is now obsolete. The meaning "state of being flawed or damaged" is from 1660s; that of "mental unsoundness" is from 1755.