tools: kwboot: Explicitly check against size of struct main_hdr_v1