To resolve this issue, complete the following:
Create an empty leave policy.
Name it, for example, 'no leave'.
Assign it to the contractor profile. Note: This will not accrue leave.
By adding an empty 'no leave' leave policy to the contractor's profile, the error will be removed, and you will be able to process the payrun.