If you don’t have two-factor authentication turned on for your Apple ID, follow the onscreen instructions, then try selecting the checkbox again. See the Apple Support article Two-factor authentication for Apple ID.