gpgsk files contain backups of secret keys. They are created by Kleopatra when creating a backup of a secret (sub)key after copying a (sub)key to a smart card.
To counter attacks with malicious gpgsk files (with the goal to overwrite a user's real secret keys or smart-card-backed shadow keys) gpg must check that the imported/restored gpgsk files are valid.