pstore/ram_core: Better ECC size checking