The following image below happens when trying to print checks in a close period:

Solution:

Step 1: Unlock the posting period of the check

Step 2: Cancel the print job: Setup > Check Printing > Check Print Job

Select Edit and Delete the print job:

Step 3: Print checks as needed